This is an automated email from the ASF dual-hosted git repository.
buhhunyx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf-fediz.git
The following commit(s) were added to refs/heads/master by this push:
new 06fdda5 update checkstyle & pmd plugins
06fdda5 is described below
commit 06fdda5c2905fafe2662cebb3de937206769542e
Author: Alexey Markevich
AuthorDate: Thu Apr 1 23:43:08 2021 +0300
update checkstyle & pmd plugins
---
.../cxf/fediz/example/FederationServlet.java | 16 +-
.../cxf/fediz/example/FederationServlet.java | 16 +-
.../cxf/fediz/example/FederationServlet.java | 12 +-
.../apache/cxf/fediz/core/config/FedizContext.java | 13 +-
.../cxf/fediz/core/handler/LogoutHandler.java | 2 +-
.../cxf/fediz/core/handler/SigninHandler.java | 2 +-
.../cxf/fediz/core/metadata/MetadataWriter.java| 30 +---
.../core/processor/FederationProcessorImpl.java| 5 +-
.../fediz/core/processor/SAMLProcessorImpl.java| 32 ++--
.../cxf/fediz/core/saml/SAMLTokenValidator.java| 26 ++-
.../samlsso/SAMLProtocolResponseValidator.java | 2 +-
.../org/apache/cxf/fediz/core/util/CertsUtils.java | 8 +-
.../apache/cxf/fediz/core/util/SignatureUtils.java | 2 +-
.../apache/cxf/fediz/core/util/StringUtils.java| 199 +
.../cxf/fediz/core/config/CallbackHandlerTest.java | 2 +-
.../fediz/core/config/FedizConfigurationTest.java | 2 +-
.../core/config/FedizConfigurationWriterTest.java | 2 +-
.../core/federation/FederationResponseTest.java| 2 +-
.../cxf/plugin/FedizRedirectBindingFilter.java | 4 +-
.../cxf/fediz/jetty9/FederationAuthenticator.java | 2 +-
.../cxf/fediz/jetty9/FederationLoginService.java | 2 +-
.../web/FederationAuthenticationEntryPoint.java| 2 +-
.../spring/web/FederationSignOutCleanupFilter.java | 2 +-
pom.xml| 6 +-
.../service/idp/STSKrbAuthenticationProvider.java | 6 +-
.../fediz/service/idp/beans/STSClientAction.java | 2 +-
.../idp/beans/samlsso/AuthnRequestParser.java | 32 ++--
.../beans/samlsso/SamlResponseErrorCreator.java| 2 +-
.../idp/kerberos/KerberosTokenValidator.java | 2 +-
.../idp/metadata/ServiceMetadataWriter.java| 1 -
.../protocols/TrustedIdpSAMLProtocolHandler.java | 19 +-
.../protocols/TrustedIdpWSFedProtocolHandler.java | 4 +-
.../idp/service/jpa/ApplicationDAOJPAImpl.java | 26 +--
.../service/idp/service/jpa/ClaimDAOJPAImpl.java | 16 +-
.../service/idp/service/jpa/DBLoaderImpl.java | 30 ++--
.../idp/service/jpa/EntitlementDAOJPAImpl.java | 16 +-
.../service/idp/service/jpa/IdpDAOJPAImpl.java | 44 ++---
.../service/idp/service/jpa/RoleDAOJPAImpl.java| 28 +--
.../idp/service/jpa/TrustedIdpDAOJPAImpl.java | 11 +-
.../service/idp/beans/STSClientActionTest.java | 25 +--
.../service/oidc/clients/ClientCodeGrants.java | 3 +-
.../fediz/service/oidc/clients/ClientTokens.java | 5 +-
.../fediz/service/oidc/logout/LogoutService.java | 5 +-
.../cxf/fediz/samlsso/example/BasicAuthFilter.java | 2 +-
.../apache/cxf/fediz/samlsso/example/SamlSso.java | 2 +-
.../cxf/fediz/systests/kerberos/KerberosTest.java | 2 +-
.../apache/cxf/fediz/systests/ldap/LDAPTest.java | 29 +--
.../java/org/apache/cxf/fediz/example/Service.java | 10 +-
.../cxf/fediz/example/FederationServlet.java | 13 +-
49 files changed, 209 insertions(+), 517 deletions(-)
diff --git
a/examples/simpleWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
b/examples/simpleWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
index f181b00..fda5dfe 100644
---
a/examples/simpleWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
+++
b/examples/simpleWebapp/src/main/java/org/apache/cxf/fediz/example/FederationServlet.java
@@ -92,19 +92,15 @@ public class FederationServlet extends HttpServlet {
Element el = SecurityTokenThreadLocal.getToken();
if (el != null) {
-out.println("Bootstrap token...");
-String token = null;
+out.println("Bootstrap token...");
try {
-TransformerFactory transFactory =
TransformerFactory.newInstance();
-Transformer transformer = transFactory.newTransformer();
-StringWriter buffer = new StringWriter();
+Transformer transformer =
TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION,
"yes");
-transformer.transform(new DOMSource(el),
- new StreamResult(buffer));
-token = buffer.toString();
-out.println("" + StringEscapeUtils.escapeXml11(token));
+StringWriter token = new StringWriter();
+