Class SamlProfileSamlAssertionBuilder
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.assertion.SamlProfileSamlAssertionBuilder
- All Implemented Interfaces:
Serializable,org.apereo.cas.support.saml.util.Saml20ObjectBuilder,SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Assertion>
public class SamlProfileSamlAssertionBuilder
extends org.apereo.cas.support.saml.util.AbstractSaml20ObjectBuilder
implements SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Assertion>
This is
SamlProfileSamlAssertionBuilder.- Since:
- 5.0.0
- See Also:
-
Field Summary
Fields inherited from class org.apereo.cas.support.saml.util.AbstractSamlObjectBuilder
DEFAULT_ELEMENT_LOCAL_NAME_FIELD, openSamlConfigBean -
Constructor Summary
ConstructorsConstructorDescriptionSamlProfileSamlAssertionBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean configBean, SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AuthnStatement> samlProfileSamlAuthNStatementBuilder, SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AttributeStatement> samlProfileSamlAttributeStatementBuilder, SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Subject> samlProfileSamlSubjectBuilder, SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Conditions> samlProfileSamlConditionsBuilder, SamlIdPObjectSigner samlObjectSigner, org.opensaml.saml.metadata.resolver.MetadataResolver samlIdPMetadataResolver) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensaml.saml.saml2.core.Assertionbuild(SamlProfileBuilderContext context) Build.protected voidsignAssertion(org.opensaml.saml.saml2.core.Assertion assertion, SamlProfileBuilderContext context) Sign assertion.Methods 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
-
SamlProfileSamlAssertionBuilder
public SamlProfileSamlAssertionBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean configBean, SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AuthnStatement> samlProfileSamlAuthNStatementBuilder, SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AttributeStatement> samlProfileSamlAttributeStatementBuilder, SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Subject> samlProfileSamlSubjectBuilder, SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Conditions> samlProfileSamlConditionsBuilder, SamlIdPObjectSigner samlObjectSigner, org.opensaml.saml.metadata.resolver.MetadataResolver samlIdPMetadataResolver)
-
-
Method Details
-
build
public org.opensaml.saml.saml2.core.Assertion build(SamlProfileBuilderContext context) throws Exception Description copied from interface:SamlProfileObjectBuilderBuild.- Specified by:
buildin interfaceSamlProfileObjectBuilder<org.opensaml.saml.saml2.core.Assertion>- Parameters:
context- the context- Returns:
- the response
- Throws:
Exception- the exception
-
signAssertion
protected void signAssertion(org.opensaml.saml.saml2.core.Assertion assertion, SamlProfileBuilderContext context) throws Exception Sign assertion.- Parameters:
assertion- the assertioncontext- the context- Throws:
Exception- the exception
-