ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1333488 - in /webservices/wss4j/trunk/src: main/java/org/apache/ws/security/ main/java/org/apache/ws/security/conversation/ main/java/org/apache/ws/security/handler/ main/java/org/apache/ws/security/message/token/ main/java/org/apache/ws/s...
Date Thu, 03 May 2012 14:53:46 GMT
Author: coheigea
Date: Thu May  3 14:53:45 2012
New Revision: 1333488

URL: http://svn.apache.org/viewvc?rev=1333488&view=rev
Log:
Some cleanup

Modified:
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSConstants.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSConfig.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSecurityEngineResult.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSecurityException.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/conversation/ConversationException.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/handler/WSHandlerConstants.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/SecurityTokenReference.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/Timestamp.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/X509Security.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/processor/SignatureProcessor.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/saml/ext/builder/SAML1Constants.java
    webservices/wss4j/trunk/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/CallbackRefTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/CustomActionProcessorTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/ResultsOrderTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/SignatureConfirmationTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/SignatureUTAliasTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/WSHandlerGetPasswordTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/EncryptionCRLTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/EncryptionTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/PasswordTypeTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SignatureCertTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SignatureTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SymmetricSignatureTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UTSignatureTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UTWseSignatureTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UsernameTokenTest.java
    webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSConstants.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSConstants.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSConstants.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSConstants.java Thu May  3 14:53:45 2012
@@ -134,9 +134,9 @@ public class WSConstants {
      */
     public static final String WST_NS_08_02 = "http://docs.oasis-open.org/ws-sx/ws-trust/200802";
     
-    public final static String WSC_SCT = "http://schemas.xmlsoap.org/ws/2005/02/sc/sct";
+    public static final String WSC_SCT = "http://schemas.xmlsoap.org/ws/2005/02/sc/sct";
     
-    public final static String WSC_SCT_05_12 = 
+    public static final String WSC_SCT_05_12 = 
         "http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/sct";
 
     //

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSConfig.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSConfig.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSConfig.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSConfig.java Thu May  3 14:53:45 2012
@@ -63,35 +63,35 @@ public class WSSConfig {
         final Map<Integer, Class<?>> tmp = new HashMap<Integer, Class<?>>();
         try {
             tmp.put(
-                new Integer(WSConstants.UT),
+                Integer.valueOf(WSConstants.UT),
                 org.apache.ws.security.action.UsernameTokenAction.class
             );
             tmp.put(
-                new Integer(WSConstants.ENCR),
+                Integer.valueOf(WSConstants.ENCR),
                 org.apache.ws.security.action.EncryptionAction.class
             );
             tmp.put(
-                new Integer(WSConstants.SIGN),
+                Integer.valueOf(WSConstants.SIGN),
                 org.apache.ws.security.action.SignatureAction.class
             );
             tmp.put(
-                new Integer(WSConstants.ST_SIGNED),
+                Integer.valueOf(WSConstants.ST_SIGNED),
                 org.apache.ws.security.action.SAMLTokenSignedAction.class
             );
             tmp.put(
-                new Integer(WSConstants.ST_UNSIGNED),
+                Integer.valueOf(WSConstants.ST_UNSIGNED),
                 org.apache.ws.security.action.SAMLTokenUnsignedAction.class
             );
             tmp.put(
-                new Integer(WSConstants.TS),
+                Integer.valueOf(WSConstants.TS),
                 org.apache.ws.security.action.TimestampAction.class
             );
             tmp.put(
-                new Integer(WSConstants.UT_SIGN),
+                Integer.valueOf(WSConstants.UT_SIGN),
                 org.apache.ws.security.action.UsernameTokenSignedAction.class
             );
             tmp.put(
-                new Integer(WSConstants.SC),
+                Integer.valueOf(WSConstants.SC),
                 org.apache.ws.security.action.SignatureConfirmationAction.class
             );
         } catch (final Throwable t) {
@@ -627,7 +627,7 @@ public class WSSConfig {
      * it is up to the implementing class to ensure that it is thread-safe.
      */
     public Class<?> setAction(int code, Action action) {
-        Object result = actionMap.put(new Integer(code), action);
+        Object result = actionMap.put(Integer.valueOf(code), action);
         if (result instanceof Class<?>) {
             return (Class<?>)result;
         } else if (result instanceof Action) {
@@ -643,7 +643,7 @@ public class WSSConfig {
      * actions for well-known operations.
      */
     public Class<?> setAction(int code, Class<?> clazz) {
-        Object result = actionMap.put(new Integer(code), clazz);
+        Object result = actionMap.put(Integer.valueOf(code), clazz);
         if (result instanceof Class<?>) {
             return (Class<?>)result;
         } else if (result instanceof Action) {
@@ -660,7 +660,7 @@ public class WSSConfig {
      * @throws WSSecurityException
      */
     public Action getAction(int action) throws WSSecurityException {
-        final Object actionObject = actionMap.get(new Integer(action));
+        final Object actionObject = actionMap.get(Integer.valueOf(action));
         
         if (actionObject instanceof Class<?>) {
             try {

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSecurityEngineResult.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSecurityEngineResult.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSecurityEngineResult.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSecurityEngineResult.java Thu May  3 14:53:45 2012
@@ -223,14 +223,14 @@ public class WSSecurityEngineResult exte
     public static final String TAG_ID = "id";
     
     public WSSecurityEngineResult(int act) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
     }
     
     public WSSecurityEngineResult(
         int act, 
         AssertionWrapper ass
     ) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
         put(TAG_SAML_ASSERTION, ass);
         put(TAG_VALIDATED_TOKEN, Boolean.FALSE);
         put(TAG_TOKEN_ELEMENT, ass.getElement());
@@ -242,7 +242,7 @@ public class WSSecurityEngineResult exte
         X509Certificate[] certs, 
         byte[] sv
     ) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
         put(TAG_PRINCIPAL, princ);
         put(TAG_X509_CERTIFICATES, certs);
         put(TAG_SIGNATURE_VALUE, sv);
@@ -270,7 +270,7 @@ public class WSSecurityEngineResult exte
         byte[] encryptedKeyBytes,
         List<WSDataRef> dataRefUris
     ) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
         put(TAG_SECRET, decryptedKey);
         put(TAG_ENCRYPTED_EPHEMERAL_KEY, encryptedKeyBytes);
         put(TAG_DATA_REF_URIS, dataRefUris);
@@ -284,7 +284,7 @@ public class WSSecurityEngineResult exte
         List<WSDataRef> dataRefUris,
         X509Certificate[] certs
     ) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
         put(TAG_SECRET, decryptedKey);
         put(TAG_ENCRYPTED_EPHEMERAL_KEY, encryptedKeyBytes);
         put(TAG_DATA_REF_URIS, dataRefUris);
@@ -296,27 +296,27 @@ public class WSSecurityEngineResult exte
     }
     
     public WSSecurityEngineResult(int act, List<WSDataRef> dataRefUris) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
         put(TAG_DATA_REF_URIS, dataRefUris);
         put(TAG_VALIDATED_TOKEN, Boolean.FALSE);
     }
     
     public WSSecurityEngineResult(int act, Timestamp tstamp) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
         put(TAG_TIMESTAMP, tstamp);
         put(TAG_VALIDATED_TOKEN, Boolean.FALSE);
         put(TAG_TOKEN_ELEMENT, tstamp.getElement());
     }
     
     public WSSecurityEngineResult(int act, SecurityContextToken sct) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
         put(TAG_SECURITY_CONTEXT_TOKEN, sct);
         put(TAG_VALIDATED_TOKEN, Boolean.FALSE);
         put(TAG_TOKEN_ELEMENT, sct.getElement());
     }
     
     public WSSecurityEngineResult(int act, SignatureConfirmation sc) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
         put(TAG_SIGNATURE_CONFIRMATION, sc);
         put(TAG_VALIDATED_TOKEN, Boolean.FALSE);
         put(TAG_TOKEN_ELEMENT, sc.getElement());
@@ -327,7 +327,7 @@ public class WSSecurityEngineResult exte
     }
     
     public WSSecurityEngineResult(int act, UsernameToken usernameToken, Principal principal) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
         put(TAG_USERNAME_TOKEN, usernameToken);
         put(TAG_PRINCIPAL, principal);
         put(TAG_VALIDATED_TOKEN, Boolean.FALSE);
@@ -335,7 +335,7 @@ public class WSSecurityEngineResult exte
     }
 
     public WSSecurityEngineResult(int act, BinarySecurity token, X509Certificate[] certs) {
-        put(TAG_ACTION, new Integer(act));
+        put(TAG_ACTION, Integer.valueOf(act));
         put(TAG_BINARY_SECURITY_TOKEN, token);
         put(TAG_X509_CERTIFICATES, certs);
         if (certs != null) {

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSecurityException.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSecurityException.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSecurityException.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/WSSecurityException.java Thu May  3 14:53:45 2012
@@ -65,35 +65,35 @@ public class WSSecurityException extends
         }
         
         FAULT_CODE_MAP.put(
-            new Integer(WSSecurityException.UNSUPPORTED_SECURITY_TOKEN), 
+            Integer.valueOf(WSSecurityException.UNSUPPORTED_SECURITY_TOKEN), 
             WSConstants.UNSUPPORTED_SECURITY_TOKEN
         );
         FAULT_CODE_MAP.put(
-            new Integer(UNSUPPORTED_ALGORITHM), 
+            Integer.valueOf(UNSUPPORTED_ALGORITHM), 
             WSConstants.UNSUPPORTED_ALGORITHM
         );
         FAULT_CODE_MAP.put(
-            new Integer(INVALID_SECURITY), 
+            Integer.valueOf(INVALID_SECURITY), 
             WSConstants.INVALID_SECURITY
         );
         FAULT_CODE_MAP.put(
-            new Integer(INVALID_SECURITY_TOKEN), 
+            Integer.valueOf(INVALID_SECURITY_TOKEN), 
             WSConstants.INVALID_SECURITY_TOKEN
         );
         FAULT_CODE_MAP.put(
-            new Integer(FAILED_AUTHENTICATION), 
+            Integer.valueOf(FAILED_AUTHENTICATION), 
             WSConstants.FAILED_AUTHENTICATION
          );
         FAULT_CODE_MAP.put(
-            new Integer(FAILED_CHECK), 
+            Integer.valueOf(FAILED_CHECK), 
             WSConstants.FAILED_CHECK
          );
         FAULT_CODE_MAP.put(
-            new Integer(SECURITY_TOKEN_UNAVAILABLE),
+            Integer.valueOf(SECURITY_TOKEN_UNAVAILABLE),
             WSConstants.SECURITY_TOKEN_UNAVAILABLE
          );
         FAULT_CODE_MAP.put(
-            new Integer(MESSAGE_EXPIRED), 
+            Integer.valueOf(MESSAGE_EXPIRED), 
             WSConstants.MESSAGE_EXPIRED
         );
     }
@@ -185,7 +185,7 @@ public class WSSecurityException extends
      * @return the fault code QName of this exception
      */
     public javax.xml.namespace.QName getFaultCode() {
-        Object ret = FAULT_CODE_MAP.get(new Integer(this.errorCode));
+        Object ret = FAULT_CODE_MAP.get(Integer.valueOf(this.errorCode));
         if (ret != null) {
             return (javax.xml.namespace.QName)ret;
         }

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/conversation/ConversationException.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/conversation/ConversationException.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/conversation/ConversationException.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/conversation/ConversationException.java Thu May  3 14:53:45 2012
@@ -27,11 +27,11 @@ public class ConversationException exten
     
     private static final long serialVersionUID = 970894530660804319L;
     
-    public final static String BAD_CONTEXT_TOKEN = "BadContextToken";
-    public final static String UNSUPPORTED_CONTEXT_TOKEN = "UnsupportedContextToken";
-    public final static String UNKNOWN_DERIVATION_SOURCE = "UnknownDerivationSource";
-    public final static String RENEW_NEEDED = "RenewNeeded";
-    public final static String UNABLE_TO_REVIEW = "UnableToRenew";
+    public static final String BAD_CONTEXT_TOKEN = "BadContextToken";
+    public static final String UNSUPPORTED_CONTEXT_TOKEN = "UnsupportedContextToken";
+    public static final String UNKNOWN_DERIVATION_SOURCE = "UnknownDerivationSource";
+    public static final String RENEW_NEEDED = "RenewNeeded";
+    public static final String UNABLE_TO_REVIEW = "UnableToRenew";
     
     private static ResourceBundle resources;
 

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/handler/WSHandlerConstants.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/handler/WSHandlerConstants.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/handler/WSHandlerConstants.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/handler/WSHandlerConstants.java Thu May  3 14:53:45 2012
@@ -271,7 +271,7 @@ public class WSHandlerConstants {
      * 
      * Refer to documentation of {@link #SIG_PROP_FILE}.
      */
-    public final static String SIG_PROP_REF_ID = "signaturePropRefId";
+    public static final String SIG_PROP_REF_ID = "signaturePropRefId";
     
     /**
      * The path of the crypto property file to use for Decryption. The classloader loads this 
@@ -294,7 +294,7 @@ public class WSHandlerConstants {
      * 
      * Refer to documentation of {@link #DEC_PROP_FILE}.
      */
-    public final static String DEC_PROP_REF_ID = "decryptionPropRefId";
+    public static final String DEC_PROP_REF_ID = "decryptionPropRefId";
     
     /**
      * The path of the crypto property file to use for Encryption. The classloader loads this 
@@ -317,7 +317,7 @@ public class WSHandlerConstants {
      * 
      * Refer to documentation of {@link #ENC_PROP_FILE}.
      */
-    public final static String ENC_PROP_REF_ID = "encryptionPropRefId";
+    public static final String ENC_PROP_REF_ID = "encryptionPropRefId";
     
     /**
      * The name of the SAML Issuer factory property file.
@@ -717,19 +717,19 @@ public class WSHandlerConstants {
 
     static {
         keyIdentifier.put("DirectReference",
-                new Integer(WSConstants.BST_DIRECT_REFERENCE));
+                Integer.valueOf(WSConstants.BST_DIRECT_REFERENCE));
         keyIdentifier.put("IssuerSerial",
-                new Integer(WSConstants.ISSUER_SERIAL));
+                Integer.valueOf(WSConstants.ISSUER_SERIAL));
         keyIdentifier.put("X509KeyIdentifier",
-                new Integer(WSConstants.X509_KEY_IDENTIFIER));
+                Integer.valueOf(WSConstants.X509_KEY_IDENTIFIER));
         keyIdentifier.put("SKIKeyIdentifier",
-                new Integer(WSConstants.SKI_KEY_IDENTIFIER));
+                Integer.valueOf(WSConstants.SKI_KEY_IDENTIFIER));
         keyIdentifier.put("EmbeddedKeyName",
-                new Integer(WSConstants.EMBEDDED_KEYNAME));
+                Integer.valueOf(WSConstants.EMBEDDED_KEYNAME));
         keyIdentifier.put("Thumbprint",
-                new Integer(WSConstants.THUMBPRINT_IDENTIFIER));
+                Integer.valueOf(WSConstants.THUMBPRINT_IDENTIFIER));
         keyIdentifier.put("EncryptedKeySHA1",
-                new Integer(WSConstants.ENCRYPTED_KEY_SHA1_IDENTIFIER));
+                Integer.valueOf(WSConstants.ENCRYPTED_KEY_SHA1_IDENTIFIER));
     }
     
     /**

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/SecurityTokenReference.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/SecurityTokenReference.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/SecurityTokenReference.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/SecurityTokenReference.java Thu May  3 14:53:45 2012
@@ -378,7 +378,7 @@ public class SecurityTokenReference {
             throw new WSSecurityException(
                 WSSecurityException.UNSUPPORTED_SECURITY_TOKEN,
                 "invalidCertForSKI",
-                new Object[]{new Integer(cert.getVersion())}
+                new Object[]{Integer.valueOf(cert.getVersion())}
             );
         }
         

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/Timestamp.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/Timestamp.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/Timestamp.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/Timestamp.java Thu May  3 14:53:45 2012
@@ -45,7 +45,7 @@ import java.util.TimeZone;
  */
 public class Timestamp {
     
-    private final static org.apache.commons.logging.Log LOG = 
+    private static final org.apache.commons.logging.Log LOG = 
         org.apache.commons.logging.LogFactory.getLog(Timestamp.class);
 
     protected Element element = null;

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/X509Security.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/X509Security.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/X509Security.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/token/X509Security.java Thu May  3 14:53:45 2012
@@ -102,7 +102,7 @@ public class X509Security extends Binary
         byte[] data = getToken();
         if (data == null) {
             throw new WSSecurityException(
-                WSSecurityException.FAILURE, "invalidCertData", new Object[]{new Integer(0)}
+                WSSecurityException.FAILURE, "invalidCertData", new Object[]{Integer.valueOf(0)}
             );
         }
         InputStream in = new ByteArrayInputStream(data);

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/processor/SignatureProcessor.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/processor/SignatureProcessor.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/processor/SignatureProcessor.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/processor/SignatureProcessor.java Thu May  3 14:53:45 2012
@@ -159,7 +159,7 @@ public class SignatureProcessor implemen
                 Map<String, Object> parameters = new HashMap<String, Object>();
                 parameters.put(SignatureSTRParser.SIGNATURE_METHOD, signatureMethod);
                 parameters.put(
-                    SignatureSTRParser.SECRET_KEY_LENGTH, new Integer(data.getWssConfig().getSecretKeyLength())
+                    SignatureSTRParser.SECRET_KEY_LENGTH, Integer.valueOf(data.getWssConfig().getSecretKeyLength())
                 );
                 strParser.parseSecurityTokenReference(
                     strElements.get(0), data, wsDocInfo, parameters

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/saml/ext/builder/SAML1Constants.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/saml/ext/builder/SAML1Constants.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/saml/ext/builder/SAML1Constants.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/saml/ext/builder/SAML1Constants.java Thu May  3 14:53:45 2012
@@ -51,19 +51,19 @@ public class SAML1Constants {
     /**
      * Assertion Bearer Confirmation Method Identifier
      */
-    public final static String CONF_BEARER = 
+    public static final String CONF_BEARER = 
         "urn:oasis:names:tc:SAML:1.0:cm:bearer";
 
     /**
      * Holder of Key Confirmation Method Identifier
      */
-    public final static String CONF_HOLDER_KEY = 
+    public static final String CONF_HOLDER_KEY = 
         "urn:oasis:names:tc:SAML:1.0:cm:holder-of-key";
 
     /**
      * Sender Vouches Confirmation Method Identifier
      */
-    public final static String CONF_SENDER_VOUCHES = 
+    public static final String CONF_SENDER_VOUCHES = 
         "urn:oasis:names:tc:SAML:1.0:cm:sender-vouches";
 
     //

Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java Thu May  3 14:53:45 2012
@@ -896,31 +896,31 @@ public class WSSecurityUtil {
                 return doAction;
             } else if (single[i].equals(WSHandlerConstants.USERNAME_TOKEN)) {
                 doAction |= WSConstants.UT;
-                actions.add(new Integer(WSConstants.UT));
+                actions.add(Integer.valueOf(WSConstants.UT));
             } else if (single[i].equals(WSHandlerConstants.USERNAME_TOKEN_NO_PASSWORD)) {
                 doAction |= WSConstants.UT_NOPASSWORD;
-                actions.add(new Integer(WSConstants.UT_NOPASSWORD));
+                actions.add(Integer.valueOf(WSConstants.UT_NOPASSWORD));
             } else if (single[i].equals(WSHandlerConstants.SIGNATURE)) {
                 doAction |= WSConstants.SIGN;
-                actions.add(new Integer(WSConstants.SIGN));
+                actions.add(Integer.valueOf(WSConstants.SIGN));
             } else if (single[i].equals(WSHandlerConstants.ENCRYPT)) {
                 doAction |= WSConstants.ENCR;
-                actions.add(new Integer(WSConstants.ENCR));
+                actions.add(Integer.valueOf(WSConstants.ENCR));
             } else if (single[i].equals(WSHandlerConstants.SAML_TOKEN_UNSIGNED)) {
                 doAction |= WSConstants.ST_UNSIGNED;
-                actions.add(new Integer(WSConstants.ST_UNSIGNED));
+                actions.add(Integer.valueOf(WSConstants.ST_UNSIGNED));
             } else if (single[i].equals(WSHandlerConstants.SAML_TOKEN_SIGNED)) {
                 doAction |= WSConstants.ST_SIGNED;
-                actions.add(new Integer(WSConstants.ST_SIGNED));
+                actions.add(Integer.valueOf(WSConstants.ST_SIGNED));
             } else if (single[i].equals(WSHandlerConstants.TIMESTAMP)) {
                 doAction |= WSConstants.TS;
-                actions.add(new Integer(WSConstants.TS));
+                actions.add(Integer.valueOf(WSConstants.TS));
             } else if (single[i].equals(WSHandlerConstants.SIGN_WITH_UT_KEY)) {
                 doAction |= WSConstants.UT_SIGN;
-                actions.add(new Integer(WSConstants.UT_SIGN));
+                actions.add(Integer.valueOf(WSConstants.UT_SIGN));
             } else if (single[i].equals(WSHandlerConstants.ENABLE_SIGNATURE_CONFIRMATION)) {
                 doAction |= WSConstants.SC;
-                actions.add(new Integer(WSConstants.SC));
+                actions.add(Integer.valueOf(WSConstants.SC));
             } else {
                 throw new WSSecurityException(
                     "Unknown action defined: " + single[i]
@@ -956,28 +956,28 @@ public class WSSecurityUtil {
                 return doAction;
             } else if (single[i].equals(WSHandlerConstants.USERNAME_TOKEN)) {
                 doAction |= WSConstants.UT;
-                actions.add(new Integer(WSConstants.UT));
+                actions.add(Integer.valueOf(WSConstants.UT));
             } else if (single[i].equals(WSHandlerConstants.SIGNATURE)) {
                 doAction |= WSConstants.SIGN;
-                actions.add(new Integer(WSConstants.SIGN));
+                actions.add(Integer.valueOf(WSConstants.SIGN));
             } else if (single[i].equals(WSHandlerConstants.ENCRYPT)) {
                 doAction |= WSConstants.ENCR;
-                actions.add(new Integer(WSConstants.ENCR));
+                actions.add(Integer.valueOf(WSConstants.ENCR));
             } else if (single[i].equals(WSHandlerConstants.SAML_TOKEN_UNSIGNED)) {
                 doAction |= WSConstants.ST_UNSIGNED;
-                actions.add(new Integer(WSConstants.ST_UNSIGNED));
+                actions.add(Integer.valueOf(WSConstants.ST_UNSIGNED));
             } else if (single[i].equals(WSHandlerConstants.SAML_TOKEN_SIGNED)) {
                 doAction |= WSConstants.ST_SIGNED;
-                actions.add(new Integer(WSConstants.ST_SIGNED));
+                actions.add(Integer.valueOf(WSConstants.ST_SIGNED));
             } else if (single[i].equals(WSHandlerConstants.TIMESTAMP)) {
                 doAction |= WSConstants.TS;
-                actions.add(new Integer(WSConstants.TS));
+                actions.add(Integer.valueOf(WSConstants.TS));
             } else if (single[i].equals(WSHandlerConstants.SIGN_WITH_UT_KEY)) {
                 doAction |= WSConstants.UT_SIGN;
-                actions.add(new Integer(WSConstants.UT_SIGN));
+                actions.add(Integer.valueOf(WSConstants.UT_SIGN));
             } else if (single[i].equals(WSHandlerConstants.ENABLE_SIGNATURE_CONFIRMATION)) {
                 doAction |= WSConstants.SC;
-                actions.add(new Integer(WSConstants.SC));
+                actions.add(Integer.valueOf(WSConstants.SC));
             } else {
                 try {
                     int parsedAction = Integer.parseInt(single[i]);
@@ -986,7 +986,7 @@ public class WSSecurityUtil {
                             "Unknown action defined: " + single[i]
                         );
                     }
-                    actions.add(new Integer(parsedAction));
+                    actions.add(Integer.valueOf(parsedAction));
                 } catch (NumberFormatException ex) {
                     throw new WSSecurityException(
                         "Unknown action defined: " + single[i]

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/CallbackRefTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/CallbackRefTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/CallbackRefTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/CallbackRefTest.java Thu May  3 14:53:45 2012
@@ -59,7 +59,7 @@ public class CallbackRefTest extends org
         reqData.setMsgContext(messageContext);
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.UT));
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(
@@ -95,7 +95,7 @@ public class CallbackRefTest extends org
         reqData.setMsgContext(new java.util.TreeMap<String, String>());
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.UT));
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.setOption(WSHandlerConstants.PW_CALLBACK_REF, callbackHandler);

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/CustomActionProcessorTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/CustomActionProcessorTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/CustomActionProcessorTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/CustomActionProcessorTest.java Thu May  3 14:53:45 2012
@@ -162,7 +162,7 @@ public class CustomActionProcessorTest e
         reqData.setWssConfig(cfg);
         
         final List<Integer> actions = new ArrayList<Integer>();
-        actions.add(new Integer(action));
+        actions.add(Integer.valueOf(action));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         reqData.setMsgContext("bread");
@@ -192,7 +192,7 @@ public class CustomActionProcessorTest e
         reqData.setWssConfig(cfg);
         
         final List<Integer> actions = new ArrayList<Integer>();
-        actions.add(new Integer(action));
+        actions.add(Integer.valueOf(action));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         reqData.setMsgContext("bread");
@@ -219,7 +219,7 @@ public class CustomActionProcessorTest e
         final int customAction = 0xDEADF000;
         
         String actionString = 
-            WSHandlerConstants.TIMESTAMP + " " + new Integer(customAction).toString();
+            WSHandlerConstants.TIMESTAMP + " " + Integer.valueOf(customAction).toString();
         List<Integer> actionList = new ArrayList<Integer>();
         //
         // This parsing will fail as it doesn't know what the custom action is

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/ResultsOrderTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/ResultsOrderTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/ResultsOrderTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/ResultsOrderTest.java Thu May  3 14:53:45 2012
@@ -53,9 +53,9 @@ public class ResultsOrderTest extends or
         );
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
-        actions.add(new Integer(WSConstants.TS));
-        actions.add(new Integer(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.TS));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
         
         assertTrue (handler.checkResults(results, actions));
         assertTrue (handler.checkResultsAnyOrder(results, actions));
@@ -83,9 +83,9 @@ public class ResultsOrderTest extends or
         );
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
-        actions.add(new Integer(WSConstants.TS));
-        actions.add(new Integer(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.TS));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
         
         assertFalse (handler.checkResults(results, actions));
         assertTrue (handler.checkResultsAnyOrder(results, actions));
@@ -115,9 +115,9 @@ public class ResultsOrderTest extends or
         );
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
-        actions.add(new Integer(WSConstants.TS));
-        actions.add(new Integer(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.TS));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
         
         assertFalse (handler.checkResults(results, actions));
         assertTrue (handler.checkResultsAnyOrder(results, actions));
@@ -147,9 +147,9 @@ public class ResultsOrderTest extends or
         );
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.SIGN));
-        actions.add(new Integer(WSConstants.UT));
-        actions.add(new Integer(WSConstants.TS));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.TS));
         
         assertFalse (handler.checkResults(results, actions));
         assertTrue (handler.checkResultsAnyOrder(results, actions));
@@ -175,9 +175,9 @@ public class ResultsOrderTest extends or
         );
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.TS));
-        actions.add(new Integer(WSConstants.UT));
-        actions.add(new Integer(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.TS));
+        actions.add(Integer.valueOf(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
         
         assertFalse (handler.checkResults(results, actions));
         assertFalse (handler.checkResultsAnyOrder(results, actions));
@@ -206,8 +206,8 @@ public class ResultsOrderTest extends or
         );
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.TS));
-        actions.add(new Integer(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.TS));
+        actions.add(Integer.valueOf(WSConstants.UT));
         
         assertFalse (handler.checkResults(results, actions));
         assertFalse (handler.checkResultsAnyOrder(results, actions));
@@ -224,7 +224,7 @@ public class ResultsOrderTest extends or
             new java.util.ArrayList<WSSecurityEngineResult>();
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.TS));
+        actions.add(Integer.valueOf(WSConstants.TS));
         
         assertFalse (handler.checkResults(results, actions));
         assertFalse (handler.checkResultsAnyOrder(results, actions));
@@ -269,9 +269,9 @@ public class ResultsOrderTest extends or
         );
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.ENCR));
-        actions.add(new Integer(WSConstants.UT));
-        actions.add(new Integer(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.ENCR));
+        actions.add(Integer.valueOf(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.UT));
         
         assertFalse (handler.checkResults(results, actions));
         assertFalse (handler.checkResultsAnyOrder(results, actions));

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/SignatureConfirmationTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/SignatureConfirmationTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/SignatureConfirmationTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/SignatureConfirmationTest.java Thu May  3 14:53:45 2012
@@ -71,7 +71,7 @@ public class SignatureConfirmationTest e
         reqData.setUsername("16c73ab6-b892-458f-abf5-2f875f74882e");
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(
@@ -110,7 +110,7 @@ public class SignatureConfirmationTest e
         reqData.setUsername("16c73ab6-b892-458f-abf5-2f875f74882e");
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(
@@ -147,7 +147,7 @@ public class SignatureConfirmationTest e
         reqData.setUsername("16c73ab6-b892-458f-abf5-2f875f74882e");
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(
@@ -208,7 +208,7 @@ public class SignatureConfirmationTest e
         reqData.setUsername("16c73ab6-b892-458f-abf5-2f875f74882e");
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/SignatureUTAliasTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/SignatureUTAliasTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/SignatureUTAliasTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/SignatureUTAliasTest.java Thu May  3 14:53:45 2012
@@ -74,8 +74,8 @@ public class SignatureUTAliasTest extend
         reqData.setMsgContext(messageContext);
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
-        actions.add(new Integer(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/WSHandlerGetPasswordTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/WSHandlerGetPasswordTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/WSHandlerGetPasswordTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/handler/WSHandlerGetPasswordTest.java Thu May  3 14:53:45 2012
@@ -81,7 +81,7 @@ public class WSHandlerGetPasswordTest ex
         reqData.setMsgContext(messageContext);
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.UT));
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(
@@ -122,7 +122,7 @@ public class WSHandlerGetPasswordTest ex
         reqData.setMsgContext(messageContext);
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.UT));
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/EncryptionCRLTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/EncryptionCRLTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/EncryptionCRLTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/EncryptionCRLTest.java Thu May  3 14:53:45 2012
@@ -86,7 +86,7 @@ public class EncryptionCRLTest extends o
         reqData.setUsername("wss40rev");
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.ENCR));
+        actions.add(Integer.valueOf(WSConstants.ENCR));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(
@@ -127,7 +127,7 @@ public class EncryptionCRLTest extends o
         reqData.setUsername("wss40rev");
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.ENCR));
+        actions.add(Integer.valueOf(WSConstants.ENCR));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.setOption(WSHandlerConstants.ENABLE_REVOCATION, "true");

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/EncryptionTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/EncryptionTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/EncryptionTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/EncryptionTest.java Thu May  3 14:53:45 2012
@@ -428,7 +428,7 @@ public class EncryptionTest extends org.
         reqData.setUsername("");
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.ENCR));
+        actions.add(Integer.valueOf(WSConstants.ENCR));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/PasswordTypeTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/PasswordTypeTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/PasswordTypeTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/PasswordTypeTest.java Thu May  3 14:53:45 2012
@@ -157,7 +157,7 @@ public class PasswordTypeTest extends or
         reqData.setMsgContext(config);
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.UT));
         
         handler.send(WSConstants.UT, doc, reqData, actions, true);
         

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SignatureCertTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SignatureCertTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SignatureCertTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SignatureCertTest.java Thu May  3 14:53:45 2012
@@ -274,7 +274,7 @@ public class SignatureCertTest extends o
         reqData.setMsgContext(config);
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(action));
+        actions.add(Integer.valueOf(action));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SignatureTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SignatureTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SignatureTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SignatureTest.java Thu May  3 14:53:45 2012
@@ -495,7 +495,7 @@ public class SignatureTest extends org.j
         reqData.setMsgContext(config);
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(action));
+        actions.add(Integer.valueOf(action));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SymmetricSignatureTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SymmetricSignatureTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SymmetricSignatureTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/SymmetricSignatureTest.java Thu May  3 14:53:45 2012
@@ -213,7 +213,7 @@ public class SymmetricSignatureTest exte
         reqData.setUsername("");
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.SIGN));
+        actions.add(Integer.valueOf(WSConstants.SIGN));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UTSignatureTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UTSignatureTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UTSignatureTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UTSignatureTest.java Thu May  3 14:53:45 2012
@@ -156,7 +156,7 @@ public class UTSignatureTest extends org
         reqData.setUsername("bob");
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT_SIGN));
+        actions.add(Integer.valueOf(WSConstants.UT_SIGN));
         
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
@@ -203,7 +203,7 @@ public class UTSignatureTest extends org
         reqData.setUsername("bob");
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT_SIGN));
+        actions.add(Integer.valueOf(WSConstants.UT_SIGN));
         
         Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UTWseSignatureTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UTWseSignatureTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UTWseSignatureTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UTWseSignatureTest.java Thu May  3 14:53:45 2012
@@ -161,7 +161,7 @@ public class UTWseSignatureTest extends 
         reqData.setMsgContext(config);
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT_SIGN));
+        actions.add(Integer.valueOf(WSConstants.UT_SIGN));
         
         handler.send(WSConstants.UT_SIGN, doc, reqData, actions, true);
         

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UsernameTokenTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UsernameTokenTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UsernameTokenTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/message/UsernameTokenTest.java Thu May  3 14:53:45 2012
@@ -635,7 +635,7 @@ public class UsernameTokenTest extends o
         reqData.setMsgContext(config);
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.UT));
         
         handler.send(WSConstants.UT, doc, reqData, actions, true);
         
@@ -663,7 +663,7 @@ public class UsernameTokenTest extends o
         reqData.setMsgContext(config);
         
         java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(WSConstants.UT));
+        actions.add(Integer.valueOf(WSConstants.UT));
         
         handler.send(WSConstants.UT, doc, reqData, actions, true);
         

Modified: webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java?rev=1333488&r1=1333487&r2=1333488&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java (original)
+++ webservices/wss4j/trunk/src/test/java/org/apache/ws/security/saml/SamlTokenTest.java Thu May  3 14:53:45 2012
@@ -382,7 +382,7 @@ public class SamlTokenTest extends org.j
         reqData.setMsgContext(config);
         
         final java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
-        actions.add(new Integer(action));
+        actions.add(Integer.valueOf(action));
         final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
         CustomHandler handler = new CustomHandler();
         handler.send(



Mime
View raw message