public class SamlProfileSamlNameIdBuilder extends org.apereo.cas.support.saml.util.AbstractSaml20ObjectBuilder implements SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.NameID>
SamlProfileSamlNameIdBuilder.| Constructor and Description |
|---|
SamlProfileSamlNameIdBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean configBean,
org.apereo.cas.authentication.principal.PersistentIdGenerator persistentIdGenerator) |
| Modifier and Type | Method and Description |
|---|---|
org.opensaml.saml.saml2.core.NameID |
build(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object assertion,
org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
java.lang.String binding,
org.opensaml.messaging.context.MessageContext messageContext)
Build response.
|
protected org.opensaml.saml.saml2.core.NameID |
determineNameId(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
java.lang.Object assertion,
java.util.List<java.lang.String> supportedNameFormats,
org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
Determine name id name id.
|
protected org.opensaml.saml.saml2.core.NameID |
encodeNameIdBasedOnNameFormat(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
java.lang.Object assertion,
java.lang.String nameFormat,
org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
Encode name id based on name format name id.
|
protected org.opensaml.saml.saml2.core.NameID |
finalizeNameId(org.opensaml.saml.saml2.core.NameID nameid,
org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
java.lang.Object assertion,
java.util.List<java.lang.String> supportedNameFormats,
org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
Finalize name id name id.
|
protected java.lang.String |
getRequiredNameIdFormatIfAny(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest)
Gets required name id format if any.
|
protected static java.util.List<java.lang.String> |
getSupportedNameIdFormats(org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
Gets supported name id formats.
|
protected net.shibboleth.idp.attribute.IdPAttribute |
prepareNameIdAttribute(java.lang.Object casAssertion,
java.lang.String nameFormat,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
org.apereo.cas.support.saml.services.SamlRegisteredService service)
Prepare name id attribute.
|
protected net.shibboleth.idp.saml.attribute.encoding.impl.SAML2StringNameIDEncoder |
prepareNameIdEncoder(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
java.lang.String nameFormat,
net.shibboleth.idp.attribute.IdPAttribute attribute,
org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
Prepare name id encoder saml 2 string name id encoder.
|
protected void |
validateRequiredNameIdFormatIfAny(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
java.util.List<java.lang.String> supportedNameFormats,
java.lang.String requiredNameFormat)
Validate required name id format if any.
|
addAttributeValuesToSaml2Attribute, decodeSamlAuthnRequest, generateSecureRandomId, getNameID, newAssertion, newAssertion, newAttribute, newAttributeStatement, newAuthnStatement, newConditions, newEcpResponse, newIssuer, newResponse, newStatus, newSubject, newSubjectpublic SamlProfileSamlNameIdBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean configBean,
org.apereo.cas.authentication.principal.PersistentIdGenerator persistentIdGenerator)
public org.opensaml.saml.saml2.core.NameID build(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object assertion,
org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
java.lang.String binding,
org.opensaml.messaging.context.MessageContext messageContext)
throws org.apereo.cas.support.saml.SamlException
SamlProfileObjectBuilderbuild in interface SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.NameID>authnRequest - the authn requestrequest - the requestresponse - the responseassertion - the assertionservice - the serviceadaptor - the adaptorbinding - the bindingmessageContext - the message contextorg.apereo.cas.support.saml.SamlException - the exceptionprotected org.opensaml.saml.saml2.core.NameID finalizeNameId(org.opensaml.saml.saml2.core.NameID nameid,
org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
java.lang.Object assertion,
java.util.List<java.lang.String> supportedNameFormats,
org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
nameid - the nameidauthnRequest - the authn requestassertion - the assertionsupportedNameFormats - the supported name formatsservice - the serviceadaptor - the adaptorprotected void validateRequiredNameIdFormatIfAny(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
java.util.List<java.lang.String> supportedNameFormats,
java.lang.String requiredNameFormat)
authnRequest - the authn requestadaptor - the adaptorsupportedNameFormats - the supported name formatsrequiredNameFormat - the required name formatprotected java.lang.String getRequiredNameIdFormatIfAny(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest)
authnRequest - the authn requestprotected static java.util.List<java.lang.String> getSupportedNameIdFormats(org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
service - the serviceadaptor - the adaptorprotected org.opensaml.saml.saml2.core.NameID determineNameId(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
java.lang.Object assertion,
java.util.List<java.lang.String> supportedNameFormats,
org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
authnRequest - the authn requestassertion - the assertionsupportedNameFormats - the supported name formatsservice - the serviceadaptor - the adaptorprotected org.opensaml.saml.saml2.core.NameID encodeNameIdBasedOnNameFormat(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
java.lang.Object assertion,
java.lang.String nameFormat,
org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
authnRequest - the authn requestassertion - the assertionnameFormat - the name formatservice - the serviceadaptor - the adaptorprotected net.shibboleth.idp.attribute.IdPAttribute prepareNameIdAttribute(java.lang.Object casAssertion,
java.lang.String nameFormat,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
org.apereo.cas.support.saml.services.SamlRegisteredService service)
casAssertion - the assertionnameFormat - the name formatadaptor - the adaptorservice - the serviceprotected net.shibboleth.idp.saml.attribute.encoding.impl.SAML2StringNameIDEncoder prepareNameIdEncoder(org.opensaml.saml.saml2.core.RequestAbstractType authnRequest,
java.lang.String nameFormat,
net.shibboleth.idp.attribute.IdPAttribute attribute,
org.apereo.cas.support.saml.services.SamlRegisteredService service,
org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
authnRequest - the authn requestnameFormat - the name formatattribute - the attributeservice - the serviceadaptor - the adaptor