Class SamlProfileSamlSoap11ResponseBuilder
- java.lang.Object
-
- org.apereo.cas.support.saml.util.AbstractSamlObjectBuilder
-
- org.apereo.cas.support.saml.util.AbstractSaml20ObjectBuilder
-
- org.apereo.cas.support.saml.web.idp.profile.builders.response.BaseSamlProfileSamlResponseBuilder<org.opensaml.soap.soap11.Envelope>
-
- org.apereo.cas.support.saml.web.idp.profile.builders.response.soap.SamlProfileSamlSoap11ResponseBuilder
-
- All Implemented Interfaces:
java.io.Serializable,SamlProfileObjectBuilder
- Direct Known Subclasses:
SamlProfileArtifactResponseBuilder,SamlProfileAttributeQueryResponseBuilder,SamlProfileSamlSoap11FaultResponseBuilder
public class SamlProfileSamlSoap11ResponseBuilder extends BaseSamlProfileSamlResponseBuilder<org.opensaml.soap.soap11.Envelope>
TheSamlProfileSamlSoap11ResponseBuilderis responsible for building the final SAML assertion for the relying party.- Since:
- 4.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SamlProfileSamlSoap11ResponseBuilder(SamlProfileSamlResponseBuilderConfigurationContext samlResponseBuilderConfigurationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.opensaml.soap.soap11.EnvelopebuildResponse(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.ResponsebuildSaml2Response(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, java.lang.String binding, org.opensaml.messaging.context.MessageContext messageContext)Build saml2 response.protected org.opensaml.soap.soap11.Envelopeencode(org.apereo.cas.support.saml.services.SamlRegisteredService service, org.opensaml.soap.soap11.Envelope envelope, 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.web.idp.profile.builders.response.BaseSamlProfileSamlResponseBuilder
build, buildSamlAssertion, buildSamlResponseIssuer, encodeFinalResponse, encryptAssertion
-
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
-
-
-
-
Constructor Detail
-
SamlProfileSamlSoap11ResponseBuilder
public SamlProfileSamlSoap11ResponseBuilder(SamlProfileSamlResponseBuilderConfigurationContext samlResponseBuilderConfigurationContext)
-
-
Method Detail
-
buildResponse
protected org.opensaml.soap.soap11.Envelope 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.SamlExceptionDescription copied from class:BaseSamlProfileSamlResponseBuilderBuild response response.- Specified by:
buildResponsein classBaseSamlProfileSamlResponseBuilder<org.opensaml.soap.soap11.Envelope>- Parameters:
assertion- the assertioncasAssertion- the cas assertionauthnRequest- the authn requestservice- the serviceadaptor- the adaptorrequest- the requestresponse- the responsebinding- the bindingmessageContext- the message context- Returns:
- the response
- Throws:
org.apereo.cas.support.saml.SamlException- the saml exception
-
buildSaml2Response
protected org.opensaml.saml.saml2.core.Response buildSaml2Response(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, java.lang.String binding, org.opensaml.messaging.context.MessageContext messageContext)Build saml2 response.- Parameters:
casAssertion- the cas assertionauthnRequest- the authn requestservice- the serviceadaptor- the adaptorrequest- the requestbinding- the bindingmessageContext- the message context- Returns:
- the org . opensaml . saml . saml 2 . core . response
-
encode
protected org.opensaml.soap.soap11.Envelope encode(org.apereo.cas.support.saml.services.SamlRegisteredService service, org.opensaml.soap.soap11.Envelope envelope, 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.SamlExceptionDescription copied from class:BaseSamlProfileSamlResponseBuilderEncode the final result into the http response.- Specified by:
encodein classBaseSamlProfileSamlResponseBuilder<org.opensaml.soap.soap11.Envelope>- Parameters:
service- the serviceenvelope- the saml responsehttpResponse- the http response; may be null to mute encoding.httpRequest- the http requestadaptor- the adaptorrelayState- the relay statebinding- the bindingauthnRequest- the authn requestassertion- the assertion- Returns:
- the t
- Throws:
org.apereo.cas.support.saml.SamlException- the saml exception
-
-