public class SAML2NameIDAttributeDefinition extends net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
NameID.
When building the NameID the textual content of the NameID is the value of the source attribute. If a
nameIdQualifier is provided that value is used as the NameID's NameQualifier otherwise the attribute
issuer's entity ID is used. If a nameIdSPQualifier is provided then that valid is used as the NameID's
SPNameQualifier, otherwise the attribute recipient's entityID is used.
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private org.opensaml.saml.common.SAMLObjectBuilder<org.opensaml.saml.saml2.core.NameID> |
nameIDBuilder
The builder for the object represented inside this attribute.
|
private String |
nameIdFormat
Format of the NameID.
|
private String |
nameIdQualifier
Name qualifier for the NameID.
|
private String |
nameIdSPQualifier
SP name qualifier for the NameID.
|
| Constructor and Description |
|---|
SAML2NameIDAttributeDefinition()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.opensaml.saml.saml2.core.NameID |
buildNameId(String nameIdValue,
net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext)
Builds a name ID.
|
protected IdPAttribute |
doAttributeDefinitionResolve(net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext,
net.shibboleth.idp.attribute.resolver.context.AttributeResolverWorkContext workContext) |
private XMLObjectAttributeValue |
encodeOneValue(IdPAttributeValue theValue,
net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext)
Worker function for doAttributeDefintionResolve.
|
String |
getNameIdFormat()
Gets the format for the NameID used as an attribute value.
|
String |
getNameIdQualifier()
Gets the NameQualifier for the NameID used as an attribute value.
|
String |
getNameIdSPQualifier()
Gets the SPNameQualifier for the NameID used as an attribute value.
|
void |
setNameIdFormat(String format)
Sets the format for the NameID used as an attribute value.
|
void |
setNameIdQualifier(String qualifier)
Sets the NameQualifier for the NameID used as an attribute value.
|
void |
setNameIdSPQualifier(String qualifier)
Sets the SPNameQualifier for the NameID used as an attribute value.
|
doInitialize, doResolve, getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getLogPrefix, getSourceAttributeId, isDependencyOnly, setAttributeEncoders, setDependencyOnly, setDisplayDescriptions, setDisplayNames, setSourceAttributeIddoDestroy, equals, getActivationCondition, getDependencies, getProfileContextStrategy, hashCode, isPropagateResolutionExceptions, resolve, setActivationCondition, setDependencies, setProfileContextStrategy, setPropagateResolutionExceptionssetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetActivationCondition, getDependencies, isPropagateResolutionExceptions, resolveinitialize, isInitializeddestroy, isDestroyedgetId@Nonnull private final org.slf4j.Logger log
@Nonnull private final org.opensaml.saml.common.SAMLObjectBuilder<org.opensaml.saml.saml2.core.NameID> nameIDBuilder
private String nameIdFormat
private String nameIdQualifier
private String nameIdSPQualifier
public SAML2NameIDAttributeDefinition()
@Nullable public String getNameIdFormat()
public void setNameIdFormat(@Nullable String format)
format - format for the NameID used as an attribute value@Nullable public String getNameIdQualifier()
public void setNameIdQualifier(@Nullable String qualifier)
qualifier - NameQualifier for the NameID used as an attribute value@Nullable public String getNameIdSPQualifier()
public void setNameIdSPQualifier(@Nullable String qualifier)
qualifier - SPNameQualifier for the NameID used as an attribute valueprotected org.opensaml.saml.saml2.core.NameID buildNameId(@Nonnull@NotEmpty String nameIdValue, @Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext) throws net.shibboleth.idp.attribute.resolver.ResolutionException
nameIdValue - value of the NameIDresolutionContext - current resolution contextnet.shibboleth.idp.attribute.resolver.ResolutionException - if the IdP Name is empty.@Nullable private XMLObjectAttributeValue encodeOneValue(@Nonnull IdPAttributeValue theValue, @Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext) throws net.shibboleth.idp.attribute.resolver.ResolutionException
theValue - an arbitrary value.resolutionContext - the context to get the rest of the values fromnet.shibboleth.idp.attribute.resolver.ResolutionException - if the IdP Name is empty.@Nullable protected IdPAttribute doAttributeDefinitionResolve(@Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext, @Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolverWorkContext workContext) throws net.shibboleth.idp.attribute.resolver.ResolutionException
Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.