Class SamlProfileSamlAssertionBuilder

    • 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.Assertion build​(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object casAssertion, 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 void signAssertion​(org.opensaml.saml.saml2.core.Assertion assertion, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apereo.cas.support.saml.services.SamlRegisteredService service, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, java.lang.String binding, org.opensaml.saml.saml2.core.RequestAbstractType authnRequest)
      Sign assertion.
      • 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

      • SamlProfileSamlAssertionBuilder

        public SamlProfileSamlAssertionBuilder​(org.apereo.cas.support.saml.OpenSamlConfigBean configBean,
                                               org.apereo.cas.configuration.CasConfigurationProperties casProperties,
                                               SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AuthnStatement> samlProfileSamlAuthNStatementBuilder,
                                               SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AttributeStatement> samlProfileSamlAttributeStatementBuilder,
                                               SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Subject> samlProfileSamlSubjectBuilder,
                                               SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Conditions> samlProfileSamlConditionsBuilder,
                                               SamlIdPObjectSigner samlObjectSigner)
    • Method Detail

      • build

        public org.opensaml.saml.saml2.core.Assertion build​(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response,
                                                            java.lang.Object casAssertion,
                                                            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.Assertion>
        Parameters:
        authnRequest - the authn request
        request - the request
        response - the response
        casAssertion - 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
      • signAssertion

        protected void signAssertion​(org.opensaml.saml.saml2.core.Assertion assertion,
                                     javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response,
                                     org.apereo.cas.support.saml.services.SamlRegisteredService service,
                                     org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
                                     java.lang.String binding,
                                     org.opensaml.saml.saml2.core.RequestAbstractType authnRequest)
                              throws org.apereo.cas.support.saml.SamlException
        Sign assertion.
        Parameters:
        assertion - the assertion
        request - the request
        response - the response
        service - the service
        adaptor - the adaptor
        binding - the binding
        authnRequest - the authn request
        Throws:
        org.apereo.cas.support.saml.SamlException - the saml exception