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:
Serializable,org.apereo.cas.support.saml.util.Saml20ObjectBuilder,SamlProfileObjectBuilder<org.opensaml.soap.soap11.Envelope>
- Direct Known Subclasses:
SamlProfileArtifactResponseBuilder,SamlProfileAttributeQueryResponseBuilder,SamlProfileSamlSoap11FaultResponseBuilder
public class SamlProfileSamlSoap11ResponseBuilder
extends BaseSamlProfileSamlResponseBuilder<org.opensaml.soap.soap11.Envelope>
The
SamlProfileSamlSoap11ResponseBuilder is responsible for
building the final SAML assertion for the relying party.- Since:
- 4.2
- See Also:
-
Field Summary
Fields inherited from class org.apereo.cas.support.saml.web.idp.profile.builders.response.BaseSamlProfileSamlResponseBuilder
configurationContextFields inherited from class org.apereo.cas.support.saml.util.AbstractSamlObjectBuilder
DEFAULT_ELEMENT_LOCAL_NAME_FIELD, openSamlConfigBean -
Constructor Summary
ConstructorsConstructorDescriptionSamlProfileSamlSoap11ResponseBuilder(SamlProfileSamlResponseBuilderConfigurationContext samlResponseBuilderConfigurationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opensaml.soap.soap11.EnvelopebuildResponse(Optional<org.opensaml.saml.saml2.core.Assertion> assertion, SamlProfileBuilderContext context) protected org.opensaml.saml.saml2.core.ResponseBuild saml2 response.protected org.opensaml.soap.soap11.Envelopeencode(SamlProfileBuilderContext context, org.opensaml.soap.soap11.Envelope envelope, String relayState) Methods inherited from class org.apereo.cas.support.saml.web.idp.profile.builders.response.BaseSamlProfileSamlResponseBuilder
build, buildSamlAssertion, buildSamlResponseIssuer, encodeFinalResponse, encryptAssertion, encryptAssertionForMethods inherited from class org.apereo.cas.support.saml.util.AbstractSaml20ObjectBuilder
addAttributeValuesToSaml2Attribute, decodeSamlAuthnRequest, generateSecureRandomId, getNameID, inflateAuthnRequest, newAssertion, newAssertion, newAttribute, newAuthnStatement, newAuthnStatement, newConditions, newEcpResponse, newIssuer, newLogoutRequest, newLogoutResponse, newResponse, newSamlObject, newStatus, newSubject, newSubjectMethods inherited from class org.apereo.cas.support.saml.util.AbstractSamlObjectBuilder
addAttributeValuesToSamlAttribute, constructDocumentFromXml, getOpenSamlConfigBean, newAttributeValue, signSamlResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.support.saml.util.Saml20ObjectBuilder
getSamlObjectQName, newSamlObject
-
Constructor Details
-
SamlProfileSamlSoap11ResponseBuilder
public SamlProfileSamlSoap11ResponseBuilder(SamlProfileSamlResponseBuilderConfigurationContext samlResponseBuilderConfigurationContext)
-
-
Method Details
-
buildResponse
protected org.opensaml.soap.soap11.Envelope buildResponse(Optional<org.opensaml.saml.saml2.core.Assertion> assertion, SamlProfileBuilderContext context) throws Exception - Specified by:
buildResponsein classBaseSamlProfileSamlResponseBuilder<org.opensaml.soap.soap11.Envelope>- Throws:
Exception
-
buildSaml2Response
protected org.opensaml.saml.saml2.core.Response buildSaml2Response(SamlProfileBuilderContext context) throws Exception Build saml2 response.- Parameters:
context- the context- Returns:
- the org . opensaml . saml . saml 2 . core . response
- Throws:
Exception- the exception
-
encode
protected org.opensaml.soap.soap11.Envelope encode(SamlProfileBuilderContext context, org.opensaml.soap.soap11.Envelope envelope, String relayState) throws Exception - Specified by:
encodein classBaseSamlProfileSamlResponseBuilder<org.opensaml.soap.soap11.Envelope>- Throws:
Exception
-