Class SAML1NameIdentifierAttributeDefinition
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
-
- net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin<IdPAttribute>
-
- net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
-
- net.shibboleth.idp.saml.attribute.resolver.impl.SAML1NameIdentifierAttributeDefinition
-
- All Implemented Interfaces:
AttributeDefinition,ResolverPlugin<IdPAttribute>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,UnmodifiableComponent,DisposableBean
@Deprecated(forRemoval=true, since="4.1.0") public class SAML1NameIdentifierAttributeDefinition extends AbstractAttributeDefinition
Deprecated, for removal: This API element is subject to removal in a future version.An attribute definition the creates attributes whose values areNameIdentifier.When building the NameIdentifier the textual content of the NameIdentifier is the value of the source attribute. If
getNameIdQualifier()is non-null, then that value is used as the NameIdentifier's NameQualifier otherwise the attribute issuer's entityID is used.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogDeprecated, for removal: This API element is subject to removal in a future version.Class logger.private SAMLObjectBuilder<NameIdentifier>nameIdentifierBuilderDeprecated, for removal: This API element is subject to removal in a future version.The builder for the object represented inside this attribute.private StringnameIdFormatDeprecated, for removal: This API element is subject to removal in a future version.Format of the NameID.private StringnameIdQualifierDeprecated, for removal: This API element is subject to removal in a future version.Name qualifier for the NameID.
-
Constructor Summary
Constructors Constructor Description SAML1NameIdentifierAttributeDefinition()Deprecated, for removal: This API element is subject to removal in a future version.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected NameIdentifierbuildNameId(String nameIdValue, AttributeResolutionContext resolutionContext)Deprecated, for removal: This API element is subject to removal in a future version.Builds a name ID.protected IdPAttributedoAttributeDefinitionResolve(AttributeResolutionContext resolutionContext, AttributeResolverWorkContext workContext)Deprecated, for removal: This API element is subject to removal in a future version.private XMLObjectAttributeValueencodeOneValue(IdPAttributeValue theValue, AttributeResolutionContext resolutionContext)Deprecated, for removal: This API element is subject to removal in a future version.Worker function for doAttributeDefintionResolve.StringgetNameIdFormat()Deprecated, for removal: This API element is subject to removal in a future version.Gets the format for the NameID used as an attribute value.StringgetNameIdQualifier()Deprecated, for removal: This API element is subject to removal in a future version.Gets the NameQualifier for the NameID used as an attribute value.voidsetNameIdFormat(String format)Deprecated, for removal: This API element is subject to removal in a future version.Sets the format for the NameID used as an attribute value.voidsetNameIdQualifier(String qualifier)Deprecated, for removal: This API element is subject to removal in a future version.Sets the NameQualifier for the NameID used as an attribute value.-
Methods inherited from class net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
doInitialize, doResolve, getLogPrefix, isDependencyOnly, isPreRequested, setDependencyOnly, setPreRequested
-
Methods inherited from class net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin
addDisplayInformation, doDestroy, equals, getActivationCondition, getAttributeDependencies, getDataConnectorDependencies, getProfileContextStrategy, hashCode, isPropagateResolutionExceptions, isSuppressDisplayInformation, resolve, setActivationCondition, setAttributeDependencies, setDataConnectorDependencies, setProfileContextStrategy, setPropagateResolutionExceptions, setSuppressDisplayInformation
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyed
-
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Methods inherited from interface net.shibboleth.idp.attribute.resolver.ResolverPlugin
getActivationCondition, getAttributeDependencies, getDataConnectorDependencies, isPropagateResolutionExceptions, resolve
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Deprecated, for removal: This API element is subject to removal in a future version.Class logger.
-
nameIdentifierBuilder
@Nonnull private final SAMLObjectBuilder<NameIdentifier> nameIdentifierBuilder
Deprecated, for removal: This API element is subject to removal in a future version.The builder for the object represented inside this attribute.
-
nameIdFormat
private String nameIdFormat
Deprecated, for removal: This API element is subject to removal in a future version.Format of the NameID.
-
nameIdQualifier
private String nameIdQualifier
Deprecated, for removal: This API element is subject to removal in a future version.Name qualifier for the NameID.
-
-
Method Detail
-
getNameIdFormat
@Nullable public String getNameIdFormat()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the format for the NameID used as an attribute value.- Returns:
- format for the NameID used as an attribute value
-
setNameIdFormat
@Nullable public void setNameIdFormat(@Nullable String format)Deprecated, for removal: This API element is subject to removal in a future version.Sets the format for the NameID used as an attribute value.- Parameters:
format- format for the NameID used as an attribute value
-
getNameIdQualifier
@Nullable public String getNameIdQualifier()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the NameQualifier for the NameID used as an attribute value.- Returns:
- NameQualifier for the NameID used as an attribute value
-
setNameIdQualifier
public void setNameIdQualifier(@Nullable String qualifier)Deprecated, for removal: This API element is subject to removal in a future version.Sets the NameQualifier for the NameID used as an attribute value.- Parameters:
qualifier- NameQualifier for the NameID used as an attribute value
-
buildNameId
protected NameIdentifier buildNameId(@Nonnull @NotEmpty String nameIdValue, @Nonnull AttributeResolutionContext resolutionContext) throws ResolutionException
Deprecated, for removal: This API element is subject to removal in a future version.Builds a name ID. The provided value is the textual content of the NameIdentifier. IfgetNameIdQualifier()is not null it is used as the NameIdentifier's name qualifier, otherwise the attribute issuer's entityID is used.- Parameters:
nameIdValue- value of the NameIdentifierresolutionContext- current resolution context- Returns:
- the constructed NameIdentifier
- Throws:
ResolutionException- if the IdP Name is empty.
-
encodeOneValue
@Nullable private XMLObjectAttributeValue encodeOneValue(@Nonnull IdPAttributeValue theValue, @Nonnull AttributeResolutionContext resolutionContext) throws ResolutionException
Deprecated, for removal: This API element is subject to removal in a future version.Worker function for doAttributeDefintionResolve. This returns an AttributeValue if the input value is appropriate for encoding as a NameID.- Parameters:
theValue- an arbitrary value.resolutionContext- the context to get the rest of the values from- Returns:
- null or an attributeValue;
- Throws:
ResolutionException- if the IdP Name is empty.
-
doAttributeDefinitionResolve
@Nullable protected IdPAttribute doAttributeDefinitionResolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) throws ResolutionException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
doAttributeDefinitionResolvein classAbstractAttributeDefinition- Throws:
ResolutionException
-
-