Changeset 146

Show
Ignore:
Timestamp:
05/08/07 16:55:36 (2 years ago)
Author:
paulhethmon
Message:

update AuthnStatement?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • AcmeIdp/trunk/web/login.jsp

    r145 r146  
    137137      // Add the Subject to the Assertion 
    138138      assertion.setSubject(subject); 
     139 
     140      // Build the AuthnContextClassRef 
     141      AuthnContextClassRefBuilder authnContextClassRefBuilder =  
     142        (AuthnContextClassRefBuilder) builderFactory.getBuilder(AuthnContextClassRef.DEFAULT_ELEMENT_NAME); 
     143      AuthnContextClassRef authnContextClassRef = authnContextClassRefBuilder.buildObject(); 
     144      authnContextClassRef.setAuthnContextClassRef("urn:oasis:names:tc:SAML:2.0:ac:classes:Password"); 
     145       
     146      // Build the AuthnContext 
     147      AuthnContextBuilder authnContextBuilder = (AuthnContextBuilder) builderFactory.getBuilder(AuthnContext.DEFAULT_ELEMENT_NAME); 
     148      AuthnContext authnContext = authnContextBuilder.buildObject(); 
     149      authnContext.setAuthnContextClassRef(authnContextClassRef); 
    139150       
    140151      // Build the AuthnStatement itself 
    141152      AuthnStatementBuilder authnStatementBuilder = (AuthnStatementBuilder) builderFactory.getBuilder(AuthnStatement.DEFAULT_ELEMENT_NAME); 
    142153      AuthnStatement authnStatement = authnStatementBuilder.buildObject(); 
    143       //authnStatement.set 
     154      authnStatement.setAuthnContext(authnContext); 
    144155      // Add the AuthnStatement to the Assertion 
    145156      assertion.getAuthnStatements().add(authnStatement);