Class SamlProfileSaml2ResponseBuilder

    • Field Summary

      • Fields inherited from class org.apereo.cas.support.saml.util.AbstractSamlObjectBuilder

        DEFAULT_ELEMENT_LOCAL_NAME_FIELD, DEFAULT_ELEMENT_NAME_FIELD, openSamlConfigBean
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.opensaml.saml.saml2.core.Response buildResponse​(org.opensaml.saml.saml2.core.Assertion assertion, java.lang.Object casAssertion, org.opensaml.saml.saml2.core.RequestAbstractType authnRequest, org.apereo.cas.support.saml.services.SamlRegisteredService service, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String binding, org.opensaml.messaging.context.MessageContext messageContext)
      Build response response.
      protected org.opensaml.saml.saml2.core.Response encode​(org.apereo.cas.support.saml.services.SamlRegisteredService service, org.opensaml.saml.saml2.core.Response samlResponse, javax.servlet.http.HttpServletResponse httpResponse, javax.servlet.http.HttpServletRequest httpRequest, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, java.lang.String relayState, java.lang.String binding, org.opensaml.saml.saml2.core.RequestAbstractType authnRequest, java.lang.Object assertion)
      Encode the final result into the http response.
      • Methods inherited from class org.apereo.cas.support.saml.util.AbstractSaml20ObjectBuilder

        addAttributeValuesToSaml2Attribute, decodeSamlAuthnRequest, generateSecureRandomId, getNameID, inflateAuthnRequest, newAssertion, newAssertion, newAttribute, newAttributeStatement, newAttributeStatement, newAuthnStatement, newConditions, newEcpResponse, newIssuer, newLogoutRequest, newResponse, newStatus, newSubject, newSubject
      • Methods inherited from class org.apereo.cas.support.saml.util.AbstractSamlObjectBuilder

        addAttributeValuesToSamlAttribute, constructDocumentFromXml, getOpenSamlConfigBean, getSamlObjectQName, newAttributeValue, newSamlObject, newSoapObject, signSamlResponse
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • buildResponse

        public org.opensaml.saml.saml2.core.Response buildResponse​(org.opensaml.saml.saml2.core.Assertion assertion,
                                                                   java.lang.Object casAssertion,
                                                                   org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
                                                                   org.apereo.cas.support.saml.services.SamlRegisteredService service,
                                                                   org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
                                                                   javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response,
                                                                   java.lang.String binding,
                                                                   org.opensaml.messaging.context.MessageContext messageContext)
                                                            throws org.apereo.cas.support.saml.SamlException
        Description copied from class: BaseSamlProfileSamlResponseBuilder
        Build response response.
        Specified by:
        buildResponse in class BaseSamlProfileSamlResponseBuilder<org.opensaml.saml.saml2.core.Response>
        Parameters:
        assertion - the assertion
        casAssertion - the cas assertion
        authnRequest - the authn request
        service - the service
        adaptor - the adaptor
        request - the request
        response - the response
        binding - the binding
        messageContext - the message context
        Returns:
        the response
        Throws:
        org.apereo.cas.support.saml.SamlException - the saml exception
      • encode

        protected org.opensaml.saml.saml2.core.Response encode​(org.apereo.cas.support.saml.services.SamlRegisteredService service,
                                                               org.opensaml.saml.saml2.core.Response samlResponse,
                                                               javax.servlet.http.HttpServletResponse httpResponse,
                                                               javax.servlet.http.HttpServletRequest httpRequest,
                                                               org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
                                                               java.lang.String relayState,
                                                               java.lang.String binding,
                                                               org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
                                                               java.lang.Object assertion)
                                                        throws org.apereo.cas.support.saml.SamlException
        Description copied from class: BaseSamlProfileSamlResponseBuilder
        Encode the final result into the http response.
        Specified by:
        encode in class BaseSamlProfileSamlResponseBuilder<org.opensaml.saml.saml2.core.Response>
        Parameters:
        service - the service
        samlResponse - the saml response
        httpResponse - the http response; may be null to mute encoding.
        httpRequest - the http request
        adaptor - the adaptor
        relayState - the relay state
        binding - the binding
        authnRequest - the authn request
        assertion - the assertion
        Returns:
        the t
        Throws:
        org.apereo.cas.support.saml.SamlException - the saml exception