Ouch. Fixed bug in confirmation methods.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 17 Mar 2005 20:14:09 +0000 (20:14 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 17 Mar 2005 20:14:09 +0000 (20:14 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1307 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/provider/ShibbolethV1SSOHandler.java

index 5f78b92..73c2c33 100644 (file)
@@ -300,9 +300,11 @@ public class ShibbolethV1SSOHandler extends BaseHandler implements IdPProtocolHa
                Vector conditions = new Vector(1);
                if (audiences != null && audiences.size() > 0) conditions.add(new SAMLAudienceRestrictionCondition(audiences));
 
-               String[] confirmationMethods = null;
+               String[] confirmationMethods = new String[0];
                if (bearerConfirmation) {
                        confirmationMethods = new String[]{SAMLSubject.CONF_BEARER};
+               } else {
+                       confirmationMethods = new String[]{SAMLSubject.CONF_ARTIFACT};
                }
 
                SAMLSubject subject = new SAMLSubject(nameId, Arrays.asList(confirmationMethods), null, null);