Partial fix for SIDP-187, use ClassRef in place of DeclRef if setting AuthnContext...
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 24 Feb 2009 23:53:15 +0000 (23:53 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 24 Feb 2009 23:53:15 +0000 (23:53 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2830 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SSOProfileHandler.java

index 0b0c6bd..4e02ac8 100644 (file)
@@ -486,9 +486,9 @@ public class SSOProfileHandler extends AbstractSAML2ProfileHandler {
         }
         
         if(authnContext.getAuthnContextClassRef() == null || authnContext.getAuthnContextDeclRef() == null){
-            AuthnContextDeclRef ref = authnContextDeclRefBuilder.buildObject();
-            ref.setAuthnContextDeclRef(loginContext.getAuthenticationMethod());
-            authnContext.setAuthnContextDeclRef(ref);
+            AuthnContextClassRef ref = authnContextClassRefBuilder.buildObject();
+            ref.setAuthnContextClassRef(loginContext.getAuthenticationMethod());
+            authnContext.setAuthnContextClassRef(ref);
         }
 
         return authnContext;