[java-shib-idp2 COMMIT] /branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPP...

noreply at shibboleth.net noreply at shibboleth.net
Fri Feb 1 17:15:25 EST 2013


Author: scantor
Date: Fri Feb  1 17:15:25 2013
New Revision: 3135

URL: http://svn.shibboleth.net/view/java-shib-idp2?rev=3135&view=rev
Log:
SIDP-558: Fix random key size

Modified:
    branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPProfileHandler.java

Modified: branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPProfileHandler.java
URL: http://svn.shibboleth.net/view/java-shib-idp2/branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPProfileHandler.java?rev=3135&r1=3134&r2=3135&view=diff
==============================================================================
--- branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPProfileHandler.java (original)
+++ branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SAML2ECPProfileHandler.java Fri Feb  1 17:15:25 2013
@@ -457,6 +457,8 @@
     /** {@inheritDoc} */
     protected void postProcessAssertion(BaseSAML2ProfileRequestContext<?, ?, ?> requestContext, Assertion assertion)
             throws ProfileException {
+        super.postProcessAssertion(requestContext, assertion);
+        
         Advice advice = assertion.getAdvice();
         if (advice == null) {
             advice = adviceBuilder.buildObject();
@@ -471,7 +473,7 @@
             advice.getChildren().add(cbOut);
         }
         GeneratedKey key = keyBuilder.buildObject();
-        byte[] buf = new byte[256];
+        byte[] buf = new byte[32];
         prng.nextBytes(buf);
         key.setValue(Base64.encode(buf));
         advice.getChildren().add(key);



More information about the commits mailing list