public class SamlProfileSaml2ResponseBuilder extends BaseSamlProfileSamlResponseBuilder<org.opensaml.saml.saml2.core.Response>
SamlProfileSaml2ResponseBuilder.casProperties, samlObjectSigner, velocityEngineFactory| Constructor and Description |
|---|
SamlProfileSaml2ResponseBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean openSamlConfigBean,
SamlIdPObjectSigner samlObjectSigner,
org.apache.velocity.app.VelocityEngine velocityEngineFactory,
SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Assertion> samlProfileSamlAssertionBuilder,
SamlObjectEncrypter samlObjectEncrypter,
org.apereo.cas.ticket.registry.TicketRegistry ticketRegistry,
org.apereo.cas.ticket.artifact.SamlArtifactTicketFactory samlArtifactTicketFactory,
org.apereo.cas.web.support.CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator,
org.opensaml.saml.common.binding.artifact.SAMLArtifactMap samlArtifactMap,
org.apereo.cas.ticket.query.SamlAttributeQueryTicketFactory samlAttributeQueryTicketFactory) |
| Modifier and Type | Method and 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.
|
build, buildEntityIssuer, buildSamlAssertion, encodeFinalResponse, encryptAssertionaddAttributeValuesToSaml2Attribute, decodeSamlAuthnRequest, generateSecureRandomId, getNameID, newAssertion, newAssertion, newAttribute, newAttributeStatement, newAuthnStatement, newConditions, newEcpResponse, newIssuer, newResponse, newStatus, newSubject, newSubjectpublic SamlProfileSaml2ResponseBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean openSamlConfigBean,
SamlIdPObjectSigner samlObjectSigner,
org.apache.velocity.app.VelocityEngine velocityEngineFactory,
SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Assertion> samlProfileSamlAssertionBuilder,
SamlObjectEncrypter samlObjectEncrypter,
org.apereo.cas.ticket.registry.TicketRegistry ticketRegistry,
org.apereo.cas.ticket.artifact.SamlArtifactTicketFactory samlArtifactTicketFactory,
org.apereo.cas.web.support.CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator,
org.opensaml.saml.common.binding.artifact.SAMLArtifactMap samlArtifactMap,
org.apereo.cas.ticket.query.SamlAttributeQueryTicketFactory samlAttributeQueryTicketFactory)
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
BaseSamlProfileSamlResponseBuilderbuildResponse in class BaseSamlProfileSamlResponseBuilder<org.opensaml.saml.saml2.core.Response>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 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
BaseSamlProfileSamlResponseBuilderencode in class BaseSamlProfileSamlResponseBuilder<org.opensaml.saml.saml2.core.Response>service - the servicesamlResponse - 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