You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2015/12/15 17:40:42 UTC

svn commit: r1720192 [3/33] - in /webservices/wss4j/trunk: bindings/src/main/java/org/apache/wss4j/binding/wss10/ bindings/src/main/java/org/apache/wss4j/binding/wss11/ bindings/src/main/java/org/apache/wss4j/binding/wssc13/ bindings/src/main/java/org/...

Modified: webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/TimestampType.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/TimestampType.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/TimestampType.java (original)
+++ webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/TimestampType.java Tue Dec 15 16:40:37 2015
@@ -17,10 +17,10 @@
  * under the License.
  */
 //
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
-// Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2014.03.27 at 03:31:18 PM GMT 
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2014.03.27 at 03:31:18 PM GMT
 //
 
 
@@ -46,14 +46,14 @@ import org.w3c.dom.Element;
 
 
 /**
- * 
+ *
  * This complex type ties together the timestamp related elements into a composite type.
- *             
- * 
+ *
+ *
  * <p>Java class for TimestampType complex type.
- * 
+ *
  * <p>The following schema fragment specifies the expected content contained within this class.
- * 
+ *
  * <pre>
  * &lt;complexType name="TimestampType">
  *   &lt;complexContent>
@@ -71,8 +71,8 @@ import org.w3c.dom.Element;
  *   &lt;/complexContent>
  * &lt;/complexType>
  * </pre>
- * 
- * 
+ *
+ *
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "TimestampType", propOrder = {
@@ -98,11 +98,11 @@ public class TimestampType {
 
     /**
      * Gets the value of the created property.
-     * 
+     *
      * @return
      *     possible object is
      *     {@link AttributedDateTime }
-     *     
+     *
      */
     public AttributedDateTime getCreated() {
         return created;
@@ -110,11 +110,11 @@ public class TimestampType {
 
     /**
      * Sets the value of the created property.
-     * 
+     *
      * @param value
      *     allowed object is
      *     {@link AttributedDateTime }
-     *     
+     *
      */
     public void setCreated(AttributedDateTime value) {
         this.created = value;
@@ -122,11 +122,11 @@ public class TimestampType {
 
     /**
      * Gets the value of the expires property.
-     * 
+     *
      * @return
      *     possible object is
      *     {@link AttributedDateTime }
-     *     
+     *
      */
     public AttributedDateTime getExpires() {
         return expires;
@@ -134,11 +134,11 @@ public class TimestampType {
 
     /**
      * Sets the value of the expires property.
-     * 
+     *
      * @param value
      *     allowed object is
      *     {@link AttributedDateTime }
-     *     
+     *
      */
     public void setExpires(AttributedDateTime value) {
         this.expires = value;
@@ -146,26 +146,26 @@ public class TimestampType {
 
     /**
      * Gets the value of the any property.
-     * 
+     *
      * <p>
      * This accessor method returns a reference to the live list,
      * not a snapshot. Therefore any modification you make to the
      * returned list will be present inside the JAXB object.
      * This is why there is not a <CODE>set</CODE> method for the any property.
-     * 
+     *
      * <p>
      * For example, to add a new item, do as follows:
      * <pre>
      *    getAny().add(newItem);
      * </pre>
-     * 
-     * 
+     *
+     *
      * <p>
      * Objects of the following type(s) are allowed in the list
      * {@link Element }
      * {@link Object }
-     * 
-     * 
+     *
+     *
      */
     public List<Object> getAny() {
         if (any == null) {
@@ -176,11 +176,11 @@ public class TimestampType {
 
     /**
      * Gets the value of the id property.
-     * 
+     *
      * @return
      *     possible object is
      *     {@link String }
-     *     
+     *
      */
     public String getId() {
         return id;
@@ -188,11 +188,11 @@ public class TimestampType {
 
     /**
      * Sets the value of the id property.
-     * 
+     *
      * @param value
      *     allowed object is
      *     {@link String }
-     *     
+     *
      */
     public void setId(String value) {
         this.id = value;
@@ -200,15 +200,15 @@ public class TimestampType {
 
     /**
      * Gets a map that contains attributes that aren't bound to any typed property on this class.
-     * 
+     *
      * <p>
-     * the map is keyed by the name of the attribute and 
+     * the map is keyed by the name of the attribute and
      * the value is the string value of the attribute.
-     * 
+     *
      * the map returned by this method is live, and you can add new attribute
      * by updating the map directly. Because of this design, there's no setter.
-     * 
-     * 
+     *
+     *
      * @return
      *     always non-null
      */

Modified: webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/package-info.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/package-info.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/package-info.java (original)
+++ webservices/wss4j/trunk/bindings/src/main/java/org/apache/wss4j/binding/wsu10/package-info.java Tue Dec 15 16:40:37 2015
@@ -17,10 +17,10 @@
  * under the License.
  */
 //
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
-// Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2014.03.28 at 12:48:03 PM GMT 
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2014.03.28 at 12:48:03 PM GMT
 //
 
 @javax.xml.bind.annotation.XmlSchema(namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

Modified: webservices/wss4j/trunk/integration/src/test/java/org/apache/wss4j/integration/test/kerberos/KerberosTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/integration/src/test/java/org/apache/wss4j/integration/test/kerberos/KerberosTest.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/integration/src/test/java/org/apache/wss4j/integration/test/kerberos/KerberosTest.java (original)
+++ webservices/wss4j/trunk/integration/src/test/java/org/apache/wss4j/integration/test/kerberos/KerberosTest.java Tue Dec 15 16:40:37 2015
@@ -135,22 +135,22 @@ import org.w3c.dom.NodeList;
 @ApplyLdifFiles("kerberos/kerberos.ldif")
 
 public class KerberosTest extends AbstractLdapTestUnit {
-    
-    private static final org.slf4j.Logger LOG = 
+
+    private static final org.slf4j.Logger LOG =
         org.slf4j.LoggerFactory.getLogger(KerberosTest.class);
-    
+
     private static final XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();
     private static final TransformerFactory TRANSFORMER_FACTORY = TransformerFactory.newInstance();
     private static DocumentBuilderFactory dbf;
-    
+
     private static boolean runTests;
     private static boolean portUpdated;
-    
+
     @BeforeClass
     public static void setUp() throws Exception {
 
         WSSConfig.init();
-        
+
         //
         // This test fails with the IBM JDK
         //
@@ -163,15 +163,15 @@ public class KerberosTest extends Abstra
 
             // System.setProperty("sun.security.krb5.debug", "true");
             System.setProperty("java.security.auth.login.config", basedir + "/src/test/resources/kerberos/kerberos.jaas");
-            
+
         }
-        
+
         dbf = DocumentBuilderFactory.newInstance();
         dbf.setNamespaceAware(true);
         dbf.setIgnoringComments(false);
         dbf.setCoalescing(false);
         dbf.setIgnoringElementContentWhitespace(false);
-        
+
         xmlInputFactory.setProperty(XMLInputFactory.IS_COALESCING, false);
         xmlInputFactory.setProperty(XMLInputFactory.SUPPORT_DTD, false);
     }
@@ -180,7 +180,7 @@ public class KerberosTest extends Abstra
     public static void tearDown() throws Exception {
         SecurityTestUtil.cleanup();
     }
-    
+
     @Before
     public void updatePort() throws Exception {
         if (!portUpdated) {
@@ -188,25 +188,25 @@ public class KerberosTest extends Abstra
             if (basedir == null) {
                 basedir = new File(".").getCanonicalPath();
             }
-            
+
             // Read in krb5.conf and substitute in the correct port
             Path path = FileSystems.getDefault().getPath(basedir, "/src/test/resources/kerberos/krb5.conf");
             String content = new String(Files.readAllBytes(path), StandardCharsets.UTF_8);
             content = content.replaceAll("port", "" + super.getKdcServer().getTransports()[0].getPort());
-            
+
             Path path2 = FileSystems.getDefault().getPath(basedir, "/target/test-classes/kerberos/krb5.conf");
             Files.write(path2, content.getBytes());
-            
+
             System.setProperty("java.security.krb5.conf", path2.toString());
-            
+
             portUpdated = true;
         }
     }
-    
+
     //
     // DOM tests
     //
-    
+
     /**
      * Test using the KerberosSecurity class to retrieve a service ticket from a KDC, wrap it
      * in a BinarySecurityToken, and process it.
@@ -217,12 +217,12 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
-        
+
         WSSecHeader secHeader = new WSSecHeader(doc);
         secHeader.insertSecurityHeader();
-        
+
         KerberosSecurity bst = new KerberosSecurity(doc);
         CallbackHandler callbackHandler = new CallbackHandler() {
             @Override
@@ -237,13 +237,13 @@ public class KerberosTest extends Abstra
         };
         bst.retrieveServiceTicket("alice", callbackHandler, "bob@service.ws.apache.org");
         WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), bst.getElement());
-        
+
         if (LOG.isDebugEnabled()) {
-            String outputString = 
+            String outputString =
                 XMLUtils.PrettyDocumentToString(doc);
             LOG.debug(outputString);
         }
-        
+
         // Configure the Validator
         WSSConfig wssConfig = WSSConfig.getNewInstance();
         KerberosTokenValidator validator = new KerberosTokenValidator();
@@ -260,12 +260,12 @@ public class KerberosTest extends Abstra
         BinarySecurity token =
             (BinarySecurity)actionResult.get(WSSecurityEngineResult.TAG_BINARY_SECURITY_TOKEN);
         Assert.assertTrue(token != null);
-        
+
         Principal principal = (Principal)actionResult.get(WSSecurityEngineResult.TAG_PRINCIPAL);
         Assert.assertTrue(principal instanceof KerberosPrincipal);
         Assert.assertTrue(principal.getName().contains("alice"));
     }
-    
+
     /**
      * Get and validate a SPNEGO token.
      */
@@ -275,12 +275,12 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
 
         WSSecHeader secHeader = new WSSecHeader(doc);
         secHeader.insertSecurityHeader();
-        
+
         SpnegoTokenContext spnegoToken = new SpnegoTokenContext();
         CallbackHandler callbackHandler = new CallbackHandler() {
             @Override
@@ -294,15 +294,15 @@ public class KerberosTest extends Abstra
             }
         };
         spnegoToken.retrieveServiceTicket("alice", callbackHandler, "bob@service.ws.apache.org");
-        
+
         byte[] token = spnegoToken.getToken();
         Assert.assertNotNull(token);
-        
+
         spnegoToken = new SpnegoTokenContext();
         spnegoToken.validateServiceTicket("bob", callbackHandler, "bob@service.ws.apache.org", token);
         Assert.assertTrue(spnegoToken.isEstablished());
     }
-    
+
     /**
      * Various unit tests for a kerberos client
      */
@@ -312,7 +312,7 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
 
         CallbackHandler callbackHandler = new CallbackHandler() {
@@ -334,8 +334,8 @@ public class KerberosTest extends Abstra
         } catch (WSSecurityException ex) {
             Assert.assertTrue(ex.getMessage().startsWith("An error occurred in trying to obtain a TGT:"));
         }
-        
-        
+
+
         try {
             KerberosSecurity bst = new KerberosSecurity(doc);
             bst.retrieveServiceTicket("alice", callbackHandler, "bob2@service");
@@ -343,9 +343,9 @@ public class KerberosTest extends Abstra
         } catch (WSSecurityException ex) {
             Assert.assertEquals(ex.getMessage(), "An error occurred in trying to obtain a service ticket");
         }
-        
+
     }
-    
+
     /**
      * Test using the KerberosSecurity class to retrieve a service ticket from a KDC, wrap it
      * in a BinarySecurityToken, and use the session key to sign the SOAP Body.
@@ -356,12 +356,12 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
 
         WSSecHeader secHeader = new WSSecHeader(doc);
         secHeader.insertSecurityHeader();
-        
+
         KerberosSecurity bst = new KerberosSecurity(doc);
         CallbackHandler callbackHandler = new CallbackHandler() {
             @Override
@@ -379,24 +379,24 @@ public class KerberosTest extends Abstra
         bst.retrieveServiceTicket("alice", callbackHandler, "bob@service.ws.apache.org");
         bst.setID("Id-" + bst.hashCode());
         WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), bst.getElement());
-        
+
         WSSecSignature sign = new WSSecSignature();
         sign.setSignatureAlgorithm(SignatureMethod.HMAC_SHA1);
         sign.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING);
         sign.setCustomTokenId(bst.getID());
         sign.setCustomTokenValueType(WSConstants.WSS_GSS_KRB_V5_AP_REQ);
-        
+
         SecretKey secretKey = bst.getSecretKey();
         sign.setSecretKey(secretKey.getEncoded());
-        
+
         Document signedDoc = sign.build(doc, null, secHeader);
-        
+
         if (LOG.isDebugEnabled()) {
-            String outputString = 
+            String outputString =
                 XMLUtils.PrettyDocumentToString(signedDoc);
             LOG.debug(outputString);
         }
-        
+
         // Configure the Validator
         WSSConfig wssConfig = WSSConfig.getNewInstance();
         KerberosTokenValidator validator = new KerberosTokenValidator();
@@ -405,21 +405,21 @@ public class KerberosTest extends Abstra
         wssConfig.setValidator(WSConstants.BINARY_TOKEN, validator);
         WSSecurityEngine secEngine = new WSSecurityEngine();
         secEngine.setWssConfig(wssConfig);
-        
-        WSHandlerResult results = 
+
+        WSHandlerResult results =
             secEngine.processSecurityHeader(doc, null, callbackHandler, null);
         WSSecurityEngineResult actionResult =
             results.getActionResults().get(WSConstants.BST).get(0);
         BinarySecurity token =
             (BinarySecurity)actionResult.get(WSSecurityEngineResult.TAG_BINARY_SECURITY_TOKEN);
         Assert.assertTrue(token != null);
-        
+
         Principal principal = (Principal)actionResult.get(WSSecurityEngineResult.TAG_PRINCIPAL);
         Assert.assertTrue(principal instanceof KerberosPrincipal);
         Assert.assertTrue(principal.getName().contains("alice"));
     }
-    
-    
+
+
     /**
      * Test using the KerberosSecurity class to retrieve a service ticket from a KDC, wrap it
      * in a BinarySecurityToken, and use the session key to sign the SOAP Body.
@@ -430,12 +430,12 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
 
         WSSecHeader secHeader = new WSSecHeader(doc);
         secHeader.insertSecurityHeader();
-        
+
         KerberosSecurity bst = new KerberosSecurity(doc);
         CallbackHandler callbackHandler = new CallbackHandler() {
             @Override
@@ -452,29 +452,29 @@ public class KerberosTest extends Abstra
         };
         bst.retrieveServiceTicket("alice", callbackHandler, "bob@service.ws.apache.org");
         bst.setID("Id-" + bst.hashCode());
-        
+
         WSSecSignature sign = new WSSecSignature();
         sign.setSignatureAlgorithm(SignatureMethod.HMAC_SHA1);
         sign.setKeyIdentifierType(WSConstants.CUSTOM_KEY_IDENTIFIER);
         sign.setCustomTokenValueType(WSConstants.WSS_KRB_KI_VALUE_TYPE);
-        
+
         SecretKey secretKey = bst.getSecretKey();
         byte[] keyData = secretKey.getEncoded();
         sign.setSecretKey(keyData);
-        
+
         byte[] digestBytes = KeyUtils.generateDigest(bst.getToken());
         sign.setCustomTokenId(Base64.encode(digestBytes));
-        
+
         Document signedDoc = sign.build(doc, null, secHeader);
-        
+
         WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), bst.getElement());
-        
+
         if (LOG.isDebugEnabled()) {
-            String outputString = 
+            String outputString =
                 XMLUtils.PrettyDocumentToString(signedDoc);
             LOG.debug(outputString);
         }
-        
+
         // Configure the Validator
         WSSConfig wssConfig = WSSConfig.getNewInstance();
         KerberosTokenValidator validator = new KerberosTokenValidator();
@@ -483,21 +483,21 @@ public class KerberosTest extends Abstra
         wssConfig.setValidator(WSConstants.BINARY_TOKEN, validator);
         WSSecurityEngine secEngine = new WSSecurityEngine();
         secEngine.setWssConfig(wssConfig);
-        
-        WSHandlerResult results = 
+
+        WSHandlerResult results =
             secEngine.processSecurityHeader(doc, null, callbackHandler, null);
         WSSecurityEngineResult actionResult =
             results.getActionResults().get(WSConstants.BST).get(0);
         BinarySecurity token =
             (BinarySecurity)actionResult.get(WSSecurityEngineResult.TAG_BINARY_SECURITY_TOKEN);
         Assert.assertTrue(token != null);
-        
+
         Principal principal = (Principal)actionResult.get(WSSecurityEngineResult.TAG_PRINCIPAL);
         Assert.assertTrue(principal instanceof KerberosPrincipal);
         Assert.assertTrue(principal.getName().contains("alice"));
     }
-    
-    
+
+
     /**
      * Test using the KerberosSecurity class to retrieve a service ticket from a KDC, wrap it
      * in a BinarySecurityToken, and use the session key to encrypt the SOAP Body.
@@ -508,12 +508,12 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
 
         WSSecHeader secHeader = new WSSecHeader(doc);
         secHeader.insertSecurityHeader();
-        
+
         KerberosSecurity bst = new KerberosSecurity(doc);
         CallbackHandler callbackHandler = new CallbackHandler() {
             @Override
@@ -531,7 +531,7 @@ public class KerberosTest extends Abstra
         bst.retrieveServiceTicket("alice", callbackHandler, "bob@service.ws.apache.org");
         bst.setID("Id-" + bst.hashCode());
         WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), bst.getElement());
-        
+
         WSSecEncrypt builder = new WSSecEncrypt();
         builder.setSymmetricEncAlgorithm(WSConstants.AES_128);
         SecretKey secretKey = bst.getSecretKey();
@@ -541,13 +541,13 @@ public class KerberosTest extends Abstra
         builder.setEncKeyId(bst.getID());
 
         Document encryptedDoc = builder.build(doc, null, secHeader);
-        
+
         if (LOG.isDebugEnabled()) {
-            String outputString = 
+            String outputString =
                 XMLUtils.PrettyDocumentToString(encryptedDoc);
             LOG.debug(outputString);
         }
-        
+
         // Configure the Validator
         WSSConfig wssConfig = WSSConfig.getNewInstance();
         KerberosTokenValidator validator = new KerberosTokenValidator();
@@ -556,20 +556,20 @@ public class KerberosTest extends Abstra
         wssConfig.setValidator(WSConstants.BINARY_TOKEN, validator);
         WSSecurityEngine secEngine = new WSSecurityEngine();
         secEngine.setWssConfig(wssConfig);
-        
-        WSHandlerResult results = 
+
+        WSHandlerResult results =
             secEngine.processSecurityHeader(encryptedDoc, null, callbackHandler, null);
         WSSecurityEngineResult actionResult =
             results.getActionResults().get(WSConstants.BST).get(0);
         BinarySecurity token =
             (BinarySecurity)actionResult.get(WSSecurityEngineResult.TAG_BINARY_SECURITY_TOKEN);
         Assert.assertTrue(token != null);
-        
+
         Principal principal = (Principal)actionResult.get(WSSecurityEngineResult.TAG_PRINCIPAL);
         Assert.assertTrue(principal instanceof KerberosPrincipal);
         Assert.assertTrue(principal.getName().contains("alice"));
     }
-    
+
     /**
      * Test using the KerberosSecurity class to retrieve a service ticket from a KDC, wrap it
      * in a BinarySecurityToken, and use the session key to encrypt the SOAP Body.
@@ -580,12 +580,12 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
 
         WSSecHeader secHeader = new WSSecHeader(doc);
         secHeader.insertSecurityHeader();
-        
+
         KerberosSecurity bst = new KerberosSecurity(doc);
         CallbackHandler callbackHandler = new CallbackHandler() {
             @Override
@@ -602,7 +602,7 @@ public class KerberosTest extends Abstra
         };
         bst.retrieveServiceTicket("alice", callbackHandler, "bob@service.ws.apache.org");
         bst.setID("Id-" + bst.hashCode());
-        
+
         WSSecEncrypt builder = new WSSecEncrypt();
         builder.setSymmetricEncAlgorithm(WSConstants.AES_128);
         SecretKey secretKey = bst.getSecretKey();
@@ -612,15 +612,15 @@ public class KerberosTest extends Abstra
         builder.setEncKeyId(bst.getID());
 
         Document encryptedDoc = builder.build(doc, null, secHeader);
-        
+
         WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), bst.getElement());
-        
+
         if (LOG.isDebugEnabled()) {
-            String outputString = 
+            String outputString =
                 XMLUtils.PrettyDocumentToString(encryptedDoc);
             LOG.debug(outputString);
         }
-        
+
         // Configure the Validator
         WSSConfig wssConfig = WSSConfig.getNewInstance();
         KerberosTokenValidator validator = new KerberosTokenValidator();
@@ -629,20 +629,20 @@ public class KerberosTest extends Abstra
         wssConfig.setValidator(WSConstants.BINARY_TOKEN, validator);
         WSSecurityEngine secEngine = new WSSecurityEngine();
         secEngine.setWssConfig(wssConfig);
-        
-        WSHandlerResult results = 
+
+        WSHandlerResult results =
             secEngine.processSecurityHeader(encryptedDoc, null, callbackHandler, null);
         WSSecurityEngineResult actionResult =
             results.getActionResults().get(WSConstants.BST).get(0);
         BinarySecurity token =
             (BinarySecurity)actionResult.get(WSSecurityEngineResult.TAG_BINARY_SECURITY_TOKEN);
         Assert.assertTrue(token != null);
-        
+
         Principal principal = (Principal)actionResult.get(WSSecurityEngineResult.TAG_PRINCIPAL);
         Assert.assertTrue(principal instanceof KerberosPrincipal);
         Assert.assertTrue(principal.getName().contains("alice"));
     }
-    
+
     /**
      * Test using the KerberosSecurity class to retrieve a service ticket from a KDC, wrap it
      * in a BinarySecurityToken, and use the session key to encrypt the SOAP Body.
@@ -653,12 +653,12 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
 
         WSSecHeader secHeader = new WSSecHeader(doc);
         secHeader.insertSecurityHeader();
-        
+
         KerberosSecurity bst = new KerberosSecurity(doc);
         CallbackHandler callbackHandler = new CallbackHandler() {
             @Override
@@ -675,7 +675,7 @@ public class KerberosTest extends Abstra
         };
         bst.retrieveServiceTicket("alice", callbackHandler, "bob@service.ws.apache.org");
         bst.setID("Id-" + bst.hashCode());
-        
+
         WSSecEncrypt builder = new WSSecEncrypt();
         builder.setSymmetricEncAlgorithm(WSConstants.AES_128);
         SecretKey secretKey = bst.getSecretKey();
@@ -685,17 +685,17 @@ public class KerberosTest extends Abstra
 
         byte[] digestBytes = KeyUtils.generateDigest(bst.getToken());
         builder.setEncKeyId(Base64.encode(digestBytes));
-        
+
         Document encryptedDoc = builder.build(doc, null, secHeader);
-        
+
         WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), bst.getElement());
-        
+
         if (LOG.isDebugEnabled()) {
-            String outputString = 
+            String outputString =
                 XMLUtils.PrettyDocumentToString(encryptedDoc);
             LOG.debug(outputString);
         }
-        
+
         // Configure the Validator
         WSSConfig wssConfig = WSSConfig.getNewInstance();
         KerberosTokenValidator validator = new KerberosTokenValidator();
@@ -704,20 +704,20 @@ public class KerberosTest extends Abstra
         wssConfig.setValidator(WSConstants.BINARY_TOKEN, validator);
         WSSecurityEngine secEngine = new WSSecurityEngine();
         secEngine.setWssConfig(wssConfig);
-        
-        WSHandlerResult results = 
+
+        WSHandlerResult results =
             secEngine.processSecurityHeader(encryptedDoc, null, callbackHandler, null);
         WSSecurityEngineResult actionResult =
             results.getActionResults().get(WSConstants.BST).get(0);
         BinarySecurity token =
             (BinarySecurity)actionResult.get(WSSecurityEngineResult.TAG_BINARY_SECURITY_TOKEN);
         Assert.assertTrue(token != null);
-        
+
         Principal principal = (Principal)actionResult.get(WSSecurityEngineResult.TAG_PRINCIPAL);
         Assert.assertTrue(principal instanceof KerberosPrincipal);
         Assert.assertTrue(principal.getName().contains("alice"));
     }
-    
+
     //
     // Streaming tests
     //
@@ -727,7 +727,7 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         Document document;
         {
             WSSSecurityProperties securityProperties = new WSSSecurityProperties();
@@ -807,7 +807,7 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         {
             Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
@@ -900,7 +900,7 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         {
             Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
@@ -993,7 +993,7 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         Document document;
         {
             WSSSecurityProperties securityProperties = new WSSSecurityProperties();
@@ -1073,7 +1073,7 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         {
             Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
@@ -1164,7 +1164,7 @@ public class KerberosTest extends Abstra
             System.out.println("Skipping test because kerberos server could not be started");
             return;
         }
-        
+
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         {
             Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
@@ -1253,5 +1253,5 @@ public class KerberosTest extends Abstra
             Assert.assertEquals(kerberosTokenSecurityEvents.size(), 1);
         }
     }
-    
+
 }

Modified: webservices/wss4j/trunk/performance/src/test/java/org/apache/wss4j/performance/AbstractTestBase.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/performance/src/test/java/org/apache/wss4j/performance/AbstractTestBase.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/performance/src/test/java/org/apache/wss4j/performance/AbstractTestBase.java (original)
+++ webservices/wss4j/trunk/performance/src/test/java/org/apache/wss4j/performance/AbstractTestBase.java Tue Dec 15 16:40:37 2015
@@ -97,7 +97,7 @@ public abstract class AbstractTestBase e
         LogManager.getLogManager().getLogger("org.jcp.xml.dsig.internal.dom").setLevel(Level.FINE);
         WSSConfig.init();
     }
-    
+
     @AfterClass
     public static void cleanup() throws Exception {
         SecurityTestUtil.cleanup();
@@ -160,7 +160,7 @@ public abstract class AbstractTestBase e
         xmlStreamWriter.close();
         return baos;
     }
-    
+
     protected ByteArrayOutputStream doOutboundSecurity(Map<String, Object> config, InputStream sourceDocument)
         throws Exception {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -216,7 +216,7 @@ public abstract class AbstractTestBase e
         requestData.setMsgContext(messageContext);
         requestData.setCallbackHandler(new WSS4JCallbackHandlerImpl());
         requestData.setWssConfig(WSSConfig.getNewInstance());
-  
+
         wss4JHandler.doSender(messageContext, requestData, true);
 
         return messageContext;
@@ -267,14 +267,14 @@ public abstract class AbstractTestBase e
             requestData.setDecCrypto(crypto);
             requestData.setSigVerCrypto(crypto);
         }
-        
+
         if (properties.get(WSHandlerConstants.ALLOW_USERNAMETOKEN_NOPASSWORD) != null) {
-            messageContext.put(WSHandlerConstants.ALLOW_USERNAMETOKEN_NOPASSWORD, 
+            messageContext.put(WSHandlerConstants.ALLOW_USERNAMETOKEN_NOPASSWORD,
                                properties.get(WSHandlerConstants.ALLOW_USERNAMETOKEN_NOPASSWORD));
         } else if (WSHandlerConstants.USERNAME_TOKEN_SIGNATURE.equals(action)) {
             messageContext.put(WSHandlerConstants.ALLOW_USERNAMETOKEN_NOPASSWORD, "true");
         }
-        
+
         // Disable PrefixList checking as the stax code doesn't support this yet
         //todo
         List<BSPRule> ignoredRules = new ArrayList<BSPRule>();
@@ -363,7 +363,7 @@ public abstract class AbstractTestBase e
 
     class CustomWSS4JHandler extends WSHandler {
 
-        private final org.slf4j.Logger log = 
+        private final org.slf4j.Logger log =
             org.slf4j.LoggerFactory.getLogger(CustomWSS4JHandler.class.getName());
         private final boolean doDebug = log.isDebugEnabled();
 

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SP11Constants.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SP11Constants.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SP11Constants.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SP11Constants.java Tue Dec 15 16:40:37 2015
@@ -49,7 +49,7 @@ public class SP11Constants extends SPCon
 
     public final static String INCLUDE_ALWAYS_TO_RECIPIENT =
             SP11Constants.SP_NS + SPConstants.INCLUDE_TOKEN_ALWAYS_TO_RECIPIENT_SUFFIX;
-    
+
     public final static String INCLUDE_ALWAYS_TO_INITIATOR =
             SP11Constants.SP_NS + SPConstants.INCLUDE_TOKEN_ALWAYS_TO_INITIATOR_SUFFIX;
 
@@ -223,7 +223,7 @@ public class SP11Constants extends SPCon
 
     public static final QName PROTECT_TOKENS = new QName(
             SP11Constants.SP_NS, SPConstants.PROTECT_TOKENS, SP11Constants.SP_PREFIX);
-    
+
     public static final QName ENCRYPT_BEFORE_SIGNING = new QName(
             SP11Constants.SP_NS, SPConstants.ENCRYPT_BEFORE_SIGNING, SP11Constants.SP_PREFIX);
 

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SPConstants.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SPConstants.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SPConstants.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SPConstants.java Tue Dec 15 16:40:37 2015
@@ -148,7 +148,7 @@ public abstract class SPConstants {
 
     ////////////////////////////////////////////////////////////////////////////////////////////////
 
-    // X509 Token types 
+    // X509 Token types
 
     public final static String X509_TOKEN = "X509Token";
 

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SPUtils.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SPUtils.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SPUtils.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/SPUtils.java Tue Dec 15 16:40:37 2015
@@ -78,10 +78,10 @@ public class SPUtils {
         }
         return (Element) node;
     }
-    
+
     private static boolean isNodeEqualToQName(Node node, QName nodeName) {
         if ((node.getNamespaceURI() == null && nodeName.getNamespaceURI() == null
-            || node.getNamespaceURI() != null 
+            || node.getNamespaceURI() != null
                 && node.getNamespaceURI().equals(nodeName.getNamespaceURI()))
             && node.getLocalName().equals(nodeName.getLocalPart())) {
             return true;

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/AsymmetricBindingBuilder.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/AsymmetricBindingBuilder.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/AsymmetricBindingBuilder.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/AsymmetricBindingBuilder.java Tue Dec 15 16:40:37 2015
@@ -57,4 +57,3 @@ public class AsymmetricBindingBuilder im
     }
 
 }
- 
\ No newline at end of file

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/HttpsTokenBuilder.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/HttpsTokenBuilder.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/HttpsTokenBuilder.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/HttpsTokenBuilder.java Tue Dec 15 16:40:37 2015
@@ -55,16 +55,16 @@ public class HttpsTokenBuilder implement
         } else {
             nestedPolicy = factory.getPolicyEngine().getPolicy(nestedPolicyElement);
         }
-        
+
         boolean requireClientCert = false;
         if (spVersion == SPConstants.SPVersion.SP11) {
-            String attr = 
+            String attr =
                 SPUtils.getAttribute(element, new QName(null, SPConstants.REQUIRE_CLIENT_CERTIFICATE));
             if ("true".equals(attr)) {
                 requireClientCert = true;
             }
         }
-        
+
         HttpsToken httpsToken = new HttpsToken(
                 spVersion,
                 spVersion.getSPConstants().getInclusionFromAttributeValue(includeTokenValue),
@@ -74,7 +74,7 @@ public class HttpsTokenBuilder implement
                 nestedPolicy,
                 requireClientCert
         );
-        
+
         httpsToken.setOptional(SPUtils.isOptional(element));
         httpsToken.setIgnorable(SPUtils.isIgnorable(element));
         return httpsToken;

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/KeyValueTokenBuilder.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/KeyValueTokenBuilder.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/KeyValueTokenBuilder.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/builders/KeyValueTokenBuilder.java Tue Dec 15 16:40:37 2015
@@ -53,7 +53,7 @@ public class KeyValueTokenBuilder implem
         } else {
             nestedPolicy = factory.getPolicyEngine().getPolicy(nestedPolicyElement);
         }
-        
+
         KeyValueToken keyValueToken = new KeyValueToken(
                 spVersion,
                 spVersion.getSPConstants().getInclusionFromAttributeValue(includeTokenValue),

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/AbstractSecurityAssertion.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/AbstractSecurityAssertion.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/AbstractSecurityAssertion.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/AbstractSecurityAssertion.java Tue Dec 15 16:40:37 2015
@@ -33,7 +33,7 @@ public abstract class AbstractSecurityAs
 
     private boolean isOptional;
     private boolean isIgnorable;
-    
+
     // if normalized is null, then this policy hasn't been normalized yet
     // if normalized == this, then this policy is already in normalized form
     // else, normalized contains the normalized version of this policy
@@ -79,24 +79,24 @@ public abstract class AbstractSecurityAs
             Policy policy = new Policy();
             ExactlyOne exactlyOne = new ExactlyOne();
             policy.addPolicyComponent(exactlyOne);
-    
+
             if (isOptional()) {
                 exactlyOne.addPolicyComponent(new All());
             }
-    
+
             AbstractSecurityAssertion a = clone(null);
             a.normalized = a;
             a.setOptional(false);
-    
+
             All all = new All();
             all.addPolicyComponent(a);
             exactlyOne.addPolicyComponent(all);
-    
+
             normalized = policy;
         }
         return normalized;
     }
-    
+
     public boolean isNormalized() {
         return normalized == this;
     }
@@ -104,36 +104,36 @@ public abstract class AbstractSecurityAs
     public PolicyComponent normalize(Policy nestedPolicy) {
         if (normalized == null) {
             Policy normalizedNestedPolicy = nestedPolicy.normalize(true);
-    
+
             Policy policy = new Policy();
             ExactlyOne exactlyOne = new ExactlyOne();
             policy.addPolicyComponent(exactlyOne);
-    
+
             if (isOptional()) {
                 exactlyOne.addPolicyComponent(new All());
             }
-    
+
             // for all alternatives in normalized nested policy
             Iterator<List<Assertion>> alternatives = normalizedNestedPolicy.getAlternatives();
             while (alternatives.hasNext()) {
                 List<Assertion> alternative = alternatives.next();
-    
+
                 Policy ncp = new Policy(nestedPolicy.getPolicyRegistry(), nestedPolicy.getNamespace());
                 ExactlyOne nceo = new ExactlyOne();
                 ncp.addPolicyComponent(nceo);
-    
+
                 All nca = new All();
                 nceo.addPolicyComponent(nca);
                 nca.addPolicyComponents(alternative);
-    
+
                 AbstractSecurityAssertion a = clone(ncp);
                 a.normalized = a;
                 a.setOptional(false);
-    
+
                 All all = new All();
                 all.addPolicyComponent(a);
                 exactlyOne.addPolicyComponent(all);
-    
+
             }
             normalized = policy;
         }

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java Tue Dec 15 16:40:37 2015
@@ -36,7 +36,7 @@ public class AlgorithmSuite extends Abst
     private static final int MAX_SKL = 256;
     private static final int MIN_AKL = 1024;
     private static final int MAX_AKL = 4096;
-    
+
     static {
         algorithmSuiteTypes.put("Basic256", new AlgorithmSuiteType(
                 "Basic256",
@@ -46,7 +46,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA_OAEP,
                 SPConstants.P_SHA1_L256,
                 SPConstants.P_SHA1_L192,
-                256, 192, 256, 
+                256, 192, 256,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic192", new AlgorithmSuiteType(
                 "Basic192",
@@ -56,7 +56,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA_OAEP,
                 SPConstants.P_SHA1_L192,
                 SPConstants.P_SHA1_L192,
-                192, 192, 192, 
+                192, 192, 192,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic128", new AlgorithmSuiteType(
                 "Basic128",
@@ -66,7 +66,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA_OAEP,
                 SPConstants.P_SHA1_L128,
                 SPConstants.P_SHA1_L128,
-                128, 128, 128, 
+                128, 128, 128,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("TripleDes", new AlgorithmSuiteType(
                 "TripleDes",
@@ -76,7 +76,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA_OAEP,
                 SPConstants.P_SHA1_L192,
                 SPConstants.P_SHA1_L192,
-                192, 192, 192, 
+                192, 192, 192,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic256Rsa15", new AlgorithmSuiteType(
                 "Basic256Rsa15",
@@ -86,7 +86,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA15,
                 SPConstants.P_SHA1_L256,
                 SPConstants.P_SHA1_L192,
-                256, 192, 256, 
+                256, 192, 256,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic192Rsa15", new AlgorithmSuiteType(
                 "Basic192Rsa15",
@@ -96,7 +96,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA15,
                 SPConstants.P_SHA1_L192,
                 SPConstants.P_SHA1_L192,
-                192, 192, 192, 
+                192, 192, 192,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic128Rsa15", new AlgorithmSuiteType(
                 "Basic128Rsa15",
@@ -106,7 +106,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA15,
                 SPConstants.P_SHA1_L128,
                 SPConstants.P_SHA1_L128,
-                128, 128, 128, 
+                128, 128, 128,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("TripleDesRsa15", new AlgorithmSuiteType(
                 "TripleDesRsa15",
@@ -116,7 +116,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA15,
                 SPConstants.P_SHA1_L192,
                 SPConstants.P_SHA1_L192,
-                192, 192, 192, 
+                192, 192, 192,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic256Sha256", new AlgorithmSuiteType(
                 "Basic256Sha256",
@@ -126,7 +126,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA_OAEP,
                 SPConstants.P_SHA1_L256,
                 SPConstants.P_SHA1_L192,
-                256, 192, 256, 
+                256, 192, 256,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic192Sha256", new AlgorithmSuiteType(
                 "Basic192Sha256",
@@ -136,7 +136,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA_OAEP,
                 SPConstants.P_SHA1_L192,
                 SPConstants.P_SHA1_L192,
-                192, 192, 192, 
+                192, 192, 192,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic128Sha256", new AlgorithmSuiteType(
                 "Basic128Sha256",
@@ -146,7 +146,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA_OAEP,
                 SPConstants.P_SHA1_L128,
                 SPConstants.P_SHA1_L128,
-                128, 128, 128, 
+                128, 128, 128,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("TripleDesSha256", new AlgorithmSuiteType(
                 "TripleDesSha256",
@@ -156,7 +156,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA_OAEP,
                 SPConstants.P_SHA1_L192,
                 SPConstants.P_SHA1_L192,
-                192, 192, 192, 
+                192, 192, 192,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic256Sha256Rsa15", new AlgorithmSuiteType(
                 "Basic256Sha256Rsa15",
@@ -166,7 +166,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA15,
                 SPConstants.P_SHA1_L256,
                 SPConstants.P_SHA1_L192,
-                256, 192, 256, 
+                256, 192, 256,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic192Sha256Rsa15", new AlgorithmSuiteType(
                 "Basic192Sha256Rsa15",
@@ -176,7 +176,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA15,
                 SPConstants.P_SHA1_L192,
                 SPConstants.P_SHA1_L192,
-                192, 192, 192, 
+                192, 192, 192,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("Basic128Sha256Rsa15", new AlgorithmSuiteType(
                 "Basic128Sha256Rsa15",
@@ -186,7 +186,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA15,
                 SPConstants.P_SHA1_L128,
                 SPConstants.P_SHA1_L128,
-                128, 128, 128, 
+                128, 128, 128,
                 MAX_SKL, MIN_AKL, MAX_AKL));
         algorithmSuiteTypes.put("TripleDesSha256Rsa15", new AlgorithmSuiteType(
                 "TripleDesSha256Rsa15",
@@ -196,7 +196,7 @@ public class AlgorithmSuite extends Abst
                 SPConstants.KW_RSA15,
                 SPConstants.P_SHA1_L192,
                 SPConstants.P_SHA1_L192,
-                192, 192, 192, 
+                192, 192, 192,
                 MAX_SKL, MIN_AKL, MAX_AKL));
     }
 
@@ -236,7 +236,7 @@ public class AlgorithmSuite extends Abst
             this.minimumAsymmetricKeyLength = minimumAsymmetricKeyLength;
             this.maximumAsymmetricKeyLength = maximumAsymmetricKeyLength;
         }
-        
+
         public AlgorithmSuiteType(AlgorithmSuiteType algorithmSuiteType) {
             this.name = algorithmSuiteType.name;
             this.digest = algorithmSuiteType.digest;
@@ -253,7 +253,7 @@ public class AlgorithmSuite extends Abst
             this.maximumAsymmetricKeyLength = algorithmSuiteType.maximumAsymmetricKeyLength;
             this.mgfAlgo = algorithmSuiteType.mgfAlgo;
         }
-        
+
         public String getName() {
             return name;
         }
@@ -305,19 +305,19 @@ public class AlgorithmSuite extends Abst
         public int getMaximumAsymmetricKeyLength() {
             return maximumAsymmetricKeyLength;
         }
-        
+
         public void setNamespace(String ns) {
             this.ns = ns;
         }
-        
+
         public String getNamespace() {
             return ns;
         }
-        
+
         public void setMGFAlgo(String mgfAlgo) {
             this.mgfAlgo = mgfAlgo;
         }
-        
+
         public String getMGFAlgo() {
             return mgfAlgo;
         }
@@ -493,7 +493,7 @@ public class AlgorithmSuite extends Abst
                     if (algorithmSuite.getAlgorithmSuiteType() != null) {
                         throw new IllegalArgumentException(SPConstants.ERR_INVALID_POLICY);
                     }
-                    
+
                     // Clone so as not to change the namespace for other AlgorithmSuiteTypes...
                     AlgorithmSuiteType newAlgorithmSuiteType = new AlgorithmSuiteType(algorithmSuiteType);
                     newAlgorithmSuiteType.setNamespace(getVersion().getNamespace());
@@ -587,7 +587,7 @@ public class AlgorithmSuite extends Abst
     public String getComputedKey() {
         return computedKey;
     }
-    
+
     public static Collection<String> getSupportedAlgorithmSuiteNames() {
         return algorithmSuiteTypes.keySet();
     }

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/BootstrapPolicy.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/BootstrapPolicy.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/BootstrapPolicy.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/BootstrapPolicy.java Tue Dec 15 16:40:37 2015
@@ -28,14 +28,14 @@ import org.apache.wss4j.policy.SPConstan
 
 /**
  * A BootstrapPolicy is held internally to a SecureConversationToken
- * 
+ *
  * While a BootstrapPolicy element DOES contain an internal Policy, this
- * token is NOT considered a PolicyContainingAssertion for the purpose of 
+ * token is NOT considered a PolicyContainingAssertion for the purpose of
  * calculating things like normalized policies and vocabulary.
  */
 public class BootstrapPolicy extends AbstractSecurityAssertion {
     private final Policy nestedPolicy;
-    
+
     public BootstrapPolicy(SPVersion version, Policy nestedPolicy) {
         super(version);
         this.nestedPolicy = nestedPolicy;
@@ -44,7 +44,7 @@ public class BootstrapPolicy extends Abs
     public QName getName() {
         return super.getVersion().getSPConstants().getBootstrapPolicy();
     }
-    
+
     public Policy getPolicy() {
         return nestedPolicy;
     }

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/HttpsToken.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/HttpsToken.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/HttpsToken.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/HttpsToken.java Tue Dec 15 16:40:37 2015
@@ -53,7 +53,7 @@ public class HttpsToken extends Abstract
         super(version, includeTokenType, issuer, issuerName, claims, nestedPolicy);
 
         parseNestedPolicy(nestedPolicy, this);
-        
+
         if (requireClientCert) {
             setAuthenticationType(AuthenticationType.RequireClientCertificate);
         }

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/SupportingTokens.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/SupportingTokens.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/SupportingTokens.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/SupportingTokens.java Tue Dec 15 16:40:37 2015
@@ -70,7 +70,7 @@ public class SupportingTokens extends Ab
     protected AbstractSecurityAssertion cloneAssertion(Policy nestedPolicy) {
         return new SupportingTokens(getVersion(), getName(), nestedPolicy);
     }
-    
+
     @Override
     public Policy getPolicy() {
         return nestedPolicy;
@@ -184,7 +184,7 @@ public class SupportingTokens extends Ab
     protected void setEncryptedElements(EncryptedElements encryptedElements) {
         this.encryptedElements = encryptedElements;
     }
-    
+
     /**
      * @return true if the supporting token should be encrypted
      */
@@ -195,7 +195,7 @@ public class SupportingTokens extends Ab
         }
         return false;
     }
-    
+
     /**
      * @return true if the supporting token is endorsing
      */

Modified: webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/X509Token.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/X509Token.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/X509Token.java (original)
+++ webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/X509Token.java Tue Dec 15 16:40:37 2015
@@ -39,7 +39,7 @@ public class X509Token extends AbstractT
         WssX509V3Token11,
         WssX509Pkcs7Token11,
         WssX509PkiPathV1Token11;
-        
+
         private static final Map<String, TokenType> lookup = new HashMap<String, TokenType>();
 
         static {

Modified: webservices/wss4j/trunk/policy/src/test/java/org/apache/wss4j/policy/tests/AbstractTestBase.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/policy/src/test/java/org/apache/wss4j/policy/tests/AbstractTestBase.java?rev=1720192&r1=1720191&r2=1720192&view=diff
==============================================================================
--- webservices/wss4j/trunk/policy/src/test/java/org/apache/wss4j/policy/tests/AbstractTestBase.java (original)
+++ webservices/wss4j/trunk/policy/src/test/java/org/apache/wss4j/policy/tests/AbstractTestBase.java Tue Dec 15 16:40:37 2015
@@ -117,7 +117,7 @@ public abstract class AbstractTestBase e
 
         return loadPolicy(policy, policyBuilder);
     }
-    
+
     protected Policy loadPolicy(String policy, PolicyBuilder policyBuilder) throws Exception {
         return policyBuilder.getPolicy(new ByteArrayInputStream(policy.getBytes(StandardCharsets.UTF_8)));
     }