Class SAML2NameIDAttributeDefinition
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin<IdPAttribute>
net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
net.shibboleth.idp.saml.attribute.resolver.impl.SAML2NameIDAttributeDefinition
- All Implemented Interfaces:
AttributeDefinition,ResolverPlugin<IdPAttribute>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,UnmodifiableComponent,DisposableBean
@Deprecated(forRemoval=true,
since="4.1.0")
public class SAML2NameIDAttributeDefinition
extends AbstractAttributeDefinition
Deprecated, for removal: This API element is subject to removal in a future version.
An attribute definition that creates attributes whose values are
NameID.
When building the NameID the textual content of the NameID is the value of the source attribute. If a
getNameIdQualifier() is non-null, then that value is used as the NameID's NameQualifier otherwise
the attribute issuer's entityID is used. If getNameIdSPQualifier() is non-null, then that valid is
used as the NameID's SPNameQualifier, otherwise the attribute recipient's entityID is used.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerDeprecated, for removal: This API element is subject to removal in a future version.Class logger.private final SAMLObjectBuilder<NameID>Deprecated, for removal: This API element is subject to removal in a future version.The builder for the object represented inside this attribute.private StringDeprecated, for removal: This API element is subject to removal in a future version.Format of the NameID.private StringDeprecated, for removal: This API element is subject to removal in a future version.Name qualifier for the NameID.private StringDeprecated, for removal: This API element is subject to removal in a future version.SP name qualifier for the NameID. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected NameIDbuildNameId(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.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.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.Deprecated, for removal: This API element is subject to removal in a future version.Gets the SPNameQualifier 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.voidsetNameIdSPQualifier(String qualifier) Deprecated, for removal: This API element is subject to removal in a future version.Sets the SPNameQualifier for the NameID used as an attribute value.Methods inherited from class net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
doInitialize, doResolve, getLogPrefix, isDependencyOnly, isPreRequested, setDependencyOnly, setPreRequestedMethods inherited from class net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin
doDestroy, equals, getActivationCondition, getAttributeDependencies, getDataConnectorDependencies, hashCode, isPropagateResolutionExceptions, resolve, setActivationCondition, setAttributeDependencies, setDataConnectorDependencies, setPropagateResolutionExceptionsMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface org.springframework.beans.factory.DisposableBean
destroyMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitializedMethods inherited from interface net.shibboleth.idp.attribute.resolver.ResolverPlugin
getActivationCondition, getAttributeDependencies, getDataConnectorDependencies, isPropagateResolutionExceptions, resolve
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logDeprecated, for removal: This API element is subject to removal in a future version.Class logger. -
nameIDBuilder
Deprecated, for removal: This API element is subject to removal in a future version.The builder for the object represented inside this attribute. -
nameIdFormat
Deprecated, for removal: This API element is subject to removal in a future version.Format of the NameID. -
nameIdQualifier
Deprecated, for removal: This API element is subject to removal in a future version.Name qualifier for the NameID. -
nameIdSPQualifier
Deprecated, for removal: This API element is subject to removal in a future version.SP name qualifier for the NameID.
-
-
Constructor Details
-
SAML2NameIDAttributeDefinition
public SAML2NameIDAttributeDefinition()Deprecated, for removal: This API element is subject to removal in a future version.Constructor.
-
-
Method Details
-
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
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
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
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
-
getNameIdSPQualifier
Deprecated, for removal: This API element is subject to removal in a future version.Gets the SPNameQualifier for the NameID used as an attribute value.- Returns:
- SPNameQualifier for the NameID used as an attribute value
-
setNameIdSPQualifier
Deprecated, for removal: This API element is subject to removal in a future version.Sets the SPNameQualifier for the NameID used as an attribute value.- Parameters:
qualifier- SPNameQualifier for the NameID used as an attribute value
-
buildNameId
@Nonnull protected NameID 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 NameID. The NameQualifier and SPNameQualifier are set according to the configuration, or to the local and requesting entityIDs respectively.- Parameters:
nameIdValue- value of the NameIDresolutionContext- current resolution context- Returns:
- the constructed NameID
- 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
-