Class SamlProfileSaml2ResponseBuilder
- 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.saml.saml2.core.Response>
-
- org.apereo.cas.support.saml.web.idp.profile.builders.response.SamlProfileSaml2ResponseBuilder
-
- All Implemented Interfaces:
java.io.Serializable,SamlProfileObjectBuilder
public class SamlProfileSaml2ResponseBuilder extends BaseSamlProfileSamlResponseBuilder<org.opensaml.saml.saml2.core.Response>
This isSamlProfileSaml2ResponseBuilder.- Since:
- 5.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SamlProfileSaml2ResponseBuilder(SamlProfileSamlResponseBuilderConfigurationContext samlResponseBuilderConfigurationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opensaml.saml.saml2.core.ResponsebuildResponse(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.Responseencode(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.-
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
-
SamlProfileSaml2ResponseBuilder
public SamlProfileSaml2ResponseBuilder(SamlProfileSamlResponseBuilderConfigurationContext samlResponseBuilderConfigurationContext)
-
-
Method Detail
-
buildResponse
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.SamlExceptionDescription copied from class:BaseSamlProfileSamlResponseBuilderBuild response response.- Specified by:
buildResponsein classBaseSamlProfileSamlResponseBuilder<org.opensaml.saml.saml2.core.Response>- 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
-
encode
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) throws org.apereo.cas.support.saml.SamlExceptionDescription copied from class:BaseSamlProfileSamlResponseBuilderEncode the final result into the http response.- Specified by:
encodein classBaseSamlProfileSamlResponseBuilder<org.opensaml.saml.saml2.core.Response>- Parameters:
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 assertion- Returns:
- the t
- Throws:
org.apereo.cas.support.saml.SamlException- the saml exception
-
-