Package org.jasig.cas.authentication.principal

Examples of org.jasig.cas.authentication.principal.Service


    protected void prepareResponse(final Response response, final Map<String, Object> model) {
        final org.jasig.cas.validation.Assertion casAssertion = getAssertionFrom(model);
        final Authentication authentication = casAssertion.getChainedAuthentications().get(0);

        final DateTime issuedAt = response.getIssueInstant();
        final Service service = getAssertionFrom(model).getService();

        // Build up the SAML assertion containing AuthenticationStatement and AttributeStatement
        final Assertion assertion = newSamlObject(Assertion.class);
        assertion.setID(generateId());
        assertion.setIssueInstant(issuedAt);
        assertion.setIssuer(this.issuer);
        assertion.setConditions(newConditions(issuedAt, service.getId()));
        final AuthenticationStatement authnStatement = newAuthenticationStatement(authentication);
        assertion.getAuthenticationStatements().add(authnStatement);

        final Subject subject = newSubject(authentication.getPrincipal().getId());
        final Map<String, Object> attributesToSend = prepareSamlAttributes(authentication, casAssertion);
View Full Code Here

TOP

Related Classes of org.jasig.cas.authentication.principal.Service

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.