[java-opensaml COMMIT] in /trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl: EncryptAssert...
noreply at shibboleth.net
noreply at shibboleth.net
Fri Oct 23 16:21:34 EDT 2015
Author: putmanb
Date: Fri Oct 23 16:21:33 2015
New Revision: 4355
URL: http://svn.shibboleth.net/view/java-opensaml?rev=4355&view=rev
Log:
Fix erroneous use of algo constant.
Modified:
trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl/EncryptAssertionsTest.java
trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl/EncryptAttributesTest.java
Modified: trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl/EncryptAssertionsTest.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl/EncryptAssertionsTest.java?rev=4355&r1=4354&r2=4355&view=diff
==============================================================================
--- trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl/EncryptAssertionsTest.java (original)
+++ trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl/EncryptAssertionsTest.java Fri Oct 23 16:21:33 2015
@@ -16,10 +16,6 @@
*/
package org.opensaml.saml.saml2.profile.impl;
-
-import org.testng.Assert;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
@@ -41,7 +37,9 @@
import org.opensaml.xmlsec.encryption.support.EncryptionConstants;
import org.opensaml.xmlsec.encryption.support.EncryptionException;
import org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory;
-import org.opensaml.xmlsec.signature.support.SignatureConstants;
+import org.testng.Assert;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
import com.google.common.base.Strings;
@@ -65,7 +63,7 @@
encParams.setDataKeyInfoGenerator(generator.newInstance());
encParams.setKeyTransportEncryptionAlgorithm(EncryptionConstants.ALGO_ID_KEYTRANSPORT_RSAOAEP);
encParams.setKeyTransportEncryptionCredential(
- AlgorithmSupport.generateKeyPairAndCredential(SignatureConstants.ALGO_ID_SIGNATURE_RSA_SHA256, 1024, false));
+ AlgorithmSupport.generateKeyPairAndCredential(EncryptionConstants.ALGO_ID_KEYTRANSPORT_RSAOAEP, 1024, false));
encParams.setKeyTransportKeyInfoGenerator(generator.newInstance());
prc = new RequestContextBuilder().buildProfileRequestContext();
Modified: trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl/EncryptAttributesTest.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl/EncryptAttributesTest.java?rev=4355&r1=4354&r2=4355&view=diff
==============================================================================
--- trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl/EncryptAttributesTest.java (original)
+++ trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/profile/impl/EncryptAttributesTest.java Fri Oct 23 16:21:33 2015
@@ -16,11 +16,6 @@
*/
package org.opensaml.saml.saml2.profile.impl;
-
-import org.testng.Assert;
-import org.testng.annotations.BeforeClass;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
@@ -46,7 +41,10 @@
import org.opensaml.xmlsec.encryption.support.EncryptionConstants;
import org.opensaml.xmlsec.encryption.support.EncryptionException;
import org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory;
-import org.opensaml.xmlsec.signature.support.SignatureConstants;
+import org.testng.Assert;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
import com.google.common.base.Strings;
@@ -79,7 +77,7 @@
encParams.setDataKeyInfoGenerator(generator.newInstance());
encParams.setKeyTransportEncryptionAlgorithm(EncryptionConstants.ALGO_ID_KEYTRANSPORT_RSAOAEP);
encParams.setKeyTransportEncryptionCredential(
- AlgorithmSupport.generateKeyPairAndCredential(SignatureConstants.ALGO_ID_SIGNATURE_RSA_SHA256, 1024, false));
+ AlgorithmSupport.generateKeyPairAndCredential(EncryptionConstants.ALGO_ID_KEYTRANSPORT_RSAOAEP, 1024, false));
encParams.setKeyTransportKeyInfoGenerator(generator.newInstance());
prc = new RequestContextBuilder().buildProfileRequestContext();
More information about the commits
mailing list