Class SamlProfileSamlAuthNStatementBuilder

    • 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.AuthnStatement build​(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object assertion, org.apereo.cas.support.saml.services.SamlRegisteredService service, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, java.lang.String binding, org.opensaml.messaging.context.MessageContext messageContext)
      Build response.
      protected org.opensaml.saml.saml2.core.SubjectLocality buildSubjectLocality​(java.lang.Object assertion, org.opensaml.saml.saml2.core.RequestAbstractType authnRequest, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, java.lang.String binding)
      Build subject locality subject locality.
      • 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
    • Constructor Detail

      • SamlProfileSamlAuthNStatementBuilder

        public SamlProfileSamlAuthNStatementBuilder​(org.apereo.cas.support.saml.OpenSamlConfigBean configBean,
                                                    AuthnContextClassRefBuilder authnContextClassRefBuilder,
                                                    org.apereo.cas.configuration.CasConfigurationProperties casProperties)
    • Method Detail

      • build

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

        protected org.opensaml.saml.saml2.core.SubjectLocality buildSubjectLocality​(java.lang.Object assertion,
                                                                                    org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
                                                                                    org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
                                                                                    java.lang.String binding)
                                                                             throws org.apereo.cas.support.saml.SamlException
        Build subject locality subject locality.
        Parameters:
        assertion - the assertion
        authnRequest - the authn request
        adaptor - the adaptor
        binding - the binding
        Returns:
        the subject locality
        Throws:
        org.apereo.cas.support.saml.SamlException - the saml exception