Changeset 146
- Timestamp:
- 05/08/07 16:55:36 (2 years ago)
- Files:
-
- AcmeIdp/trunk/web/login.jsp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
AcmeIdp/trunk/web/login.jsp
r145 r146 137 137 // Add the Subject to the Assertion 138 138 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); 139 150 140 151 // Build the AuthnStatement itself 141 152 AuthnStatementBuilder authnStatementBuilder = (AuthnStatementBuilder) builderFactory.getBuilder(AuthnStatement.DEFAULT_ELEMENT_NAME); 142 153 AuthnStatement authnStatement = authnStatementBuilder.buildObject(); 143 //authnStatement.set154 authnStatement.setAuthnContext(authnContext); 144 155 // Add the AuthnStatement to the Assertion 145 156 assertion.getAuthnStatements().add(authnStatement);
