public class SAML1NameIdentifierAttributeDefinition extends net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
NameIdentifier.
When building the NameIdentifier the textual content of the NameIdentifier is the value of the source attribute.
If a nameIdQualifier is provided that value is used as the NameIdentifier's NameQualifier otherwise the
attribute issuer's entity ID is used.
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private org.opensaml.saml.common.SAMLObjectBuilder<org.opensaml.saml.saml1.core.NameIdentifier> |
nameIdentifierBuilder
The builder for the object represented inside this attribute.
|
private String |
nameIdFormat
Format of the NameID.
|
private String |
nameIdQualifier
Name qualifier for the NameID.
|
| Constructor and Description |
|---|
SAML1NameIdentifierAttributeDefinition()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.opensaml.saml.saml1.core.NameIdentifier |
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.
|
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.
|
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.saml1.core.NameIdentifier> nameIdentifierBuilder
private String nameIdFormat
private String nameIdQualifier
public SAML1NameIdentifierAttributeDefinition()
@Nullable public String getNameIdFormat()
@Nullable 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 valueprotected org.opensaml.saml.saml1.core.NameIdentifier buildNameId(@Nonnull@NotEmpty String nameIdValue, @Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext) throws net.shibboleth.idp.attribute.resolver.ResolutionException
nameIdQualifier
is not null it is used as the NameIdentifier's name qualifier, otherwise the attribute issuer's entity id is
used.nameIdValue - value of the NameIdentifierresolutionContext - 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.