ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1762323 - /webservices/wss4j/branches/2_0_x-fixes/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java
Date Mon, 26 Sep 2016 11:38:54 GMT
Author: coheigea
Date: Mon Sep 26 11:38:54 2016
New Revision: 1762323

URL: http://svn.apache.org/viewvc?rev=1762323&view=rev
Log:
Add a mechanism to report an invalid AlgorithmSuite name

Modified:
    webservices/wss4j/branches/2_0_x-fixes/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java

Modified: webservices/wss4j/branches/2_0_x-fixes/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/2_0_x-fixes/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java?rev=1762323&r1=1762322&r2=1762323&view=diff
==============================================================================
--- webservices/wss4j/branches/2_0_x-fixes/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java
(original)
+++ webservices/wss4j/branches/2_0_x-fixes/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java
Mon Sep 26 11:38:54 2016
@@ -449,6 +449,7 @@ public class AlgorithmSuite extends Abst
     private String symmetricSignature = SPConstants.HMAC_SHA1;
     private String asymmetricSignature = SPConstants.RSA_SHA1;
     private String computedKey = SPConstants.P_SHA1;
+    private String firstInvalidAlgorithmSuite;
 
     public AlgorithmSuite(SPConstants.SPVersion version, Policy nestedPolicy) {
         super(version);
@@ -508,6 +509,8 @@ public class AlgorithmSuite extends Abst
                     newAlgorithmSuiteType.setNamespace(getVersion().getNamespace());
                     algorithmSuite.setAlgorithmSuiteType(newAlgorithmSuiteType);
                     continue;
+                } else {
+                    firstInvalidAlgorithmSuite = assertionName;
                 }
                 C14NType c14NType = C14NType.lookUp(assertionName);
                 if (c14NType != null) {
@@ -608,5 +611,10 @@ public class AlgorithmSuite extends Abst
     public void setAsymmetricSignature(String asymmetricSignature) {
         this.asymmetricSignature = asymmetricSignature;
     }
+
+    public String getFirstInvalidAlgorithmSuite() {
+        return firstInvalidAlgorithmSuite;
+    }
+
 }
 



Mime
View raw message