ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1694174 - /webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java
Date Wed, 05 Aug 2015 11:10:36 GMT
Author: coheigea
Date: Wed Aug  5 11:10:35 2015
New Revision: 1694174

URL: http://svn.apache.org/r1694174
Log:
[WSS-550] - Add the ability to specify a MGF-SHA algorithm in the policy AlgorithmSuiteType

Modified:
    webservices/wss4j/trunk/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java

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=1694174&r1=1694173&r2=1694174&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
Wed Aug  5 11:10:35 2015
@@ -195,6 +195,7 @@ public class AlgorithmSuite extends Abst
         private int maximumSymmetricKeyLength;
         private int minimumAsymmetricKeyLength;
         private int maximumAsymmetricKeyLength;
+        private String mgfAlgo;
         private String ns;
 
         public AlgorithmSuiteType(String name, String digest, String encryption, String symmetricKeyWrap,
String asymmetricKeyWrap,
@@ -230,6 +231,7 @@ public class AlgorithmSuite extends Abst
             this.maximumSymmetricKeyLength = algorithmSuiteType.maximumSymmetricKeyLength;
             this.minimumAsymmetricKeyLength = algorithmSuiteType.minimumAsymmetricKeyLength;
             this.maximumAsymmetricKeyLength = algorithmSuiteType.maximumAsymmetricKeyLength;
+            this.mgfAlgo = algorithmSuiteType.mgfAlgo;
         }
         
         public String getName() {
@@ -291,6 +293,14 @@ public class AlgorithmSuite extends Abst
         public String getNamespace() {
             return ns;
         }
+        
+        public void setMGFAlgo(String mgfAlgo) {
+            this.mgfAlgo = mgfAlgo;
+        }
+        
+        public String getMGFAlgo() {
+            return mgfAlgo;
+        }
     }
 
     public enum XPathType {



Mime
View raw message