public class SamlProfileSamlSoap11ResponseBuilder extends BaseSamlProfileSamlResponseBuilder<org.opensaml.soap.soap11.Envelope>
SamlProfileSamlSoap11ResponseBuilder is responsible for
building the final SAML assertion for the relying party.| Modifier and Type | Field and Description |
|---|---|
protected SamlProfileObjectBuilder<? extends org.opensaml.saml.common.SAMLObject> |
saml2ResponseBuilder
SAML2 response builder for the soap body.
|
casProperties, samlObjectSigner, velocityEngineFactory| Constructor and Description |
|---|
SamlProfileSamlSoap11ResponseBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean openSamlConfigBean,
SamlIdPObjectSigner samlObjectSigner,
org.apache.velocity.app.VelocityEngine velocityEngineFactory,
SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Assertion> samlProfileSamlAssertionBuilder,
SamlProfileObjectBuilder<? extends org.opensaml.saml.common.SAMLObject> saml2ResponseBuilder,
SamlObjectEncrypter samlObjectEncrypter) |
| Modifier and Type | Method and Description |
|---|---|
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)
Build response response.
|
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.
|
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)
Encode the final result into the http response.
|
build, buildEntityIssuer, buildSamlAssertion, encodeFinalResponse, encryptAssertionaddAttributeValuesToSaml2Attribute, decodeSamlAuthnRequest, generateSecureRandomId, getNameID, newAssertion, newAssertion, newAttribute, newAttributeStatement, newAuthnStatement, newConditions, newEcpResponse, newIssuer, newResponse, newStatus, newSubject, newSubjectprotected final SamlProfileObjectBuilder<? extends org.opensaml.saml.common.SAMLObject> saml2ResponseBuilder
public SamlProfileSamlSoap11ResponseBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean openSamlConfigBean,
SamlIdPObjectSigner samlObjectSigner,
org.apache.velocity.app.VelocityEngine velocityEngineFactory,
SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Assertion> samlProfileSamlAssertionBuilder,
SamlProfileObjectBuilder<? extends org.opensaml.saml.common.SAMLObject> saml2ResponseBuilder,
SamlObjectEncrypter samlObjectEncrypter)
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.SamlException
BaseSamlProfileSamlResponseBuilderbuildResponse in class BaseSamlProfileSamlResponseBuilder<org.opensaml.soap.soap11.Envelope>assertion - the assertioncasAssertion - the cas assertionauthnRequest - the authn requestservice - the serviceadaptor - the adaptorrequest - the requestresponse - the responsebinding - the bindingmessageContext - the message contextorg.apereo.cas.support.saml.SamlException - the saml exceptionprotected 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)
casAssertion - the cas assertionauthnRequest - the authn requestservice - the serviceadaptor - the adaptorrequest - the requestbinding - the bindingmessageContext - the message contextprotected 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.SamlException
BaseSamlProfileSamlResponseBuilderencode in class BaseSamlProfileSamlResponseBuilder<org.opensaml.soap.soap11.Envelope>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 assertionorg.apereo.cas.support.saml.SamlException - the saml exception