NameIdType - type of identifier objectpublic class LegacyNameIdentifierGenerator<NameIdType extends SAMLObject> extends AbstractIdentifiableInitializableComponent implements NameIdentifierGenerator<NameIdType>
NameIdentifierAttributeEncoders attached.
Provided for compatibility with V2 configurations.
While in principle this generator could be configured in the V3 manner by mapping Format(s) to instances of the class, this would require extra configuration to guarantee compatibility, so by design it works by relying on the Format value supplied at generation time to decide which attribute encoders use, in the manner the V2 IdP does.
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Predicate<ProfileRequestContext> |
activationCondition
Deprecated.
A predicate indicating whether the component applies to a request.
|
private com.google.common.base.Function<ProfileRequestContext,AttributeContext> |
attributeContextLookupStrategy
Deprecated.
Lookup strategy for
AttributeContext. |
private Class<? extends NameIdentifierAttributeEncoder> |
encoderType
Deprecated.
Type of encoder to check for when looping.
|
private org.slf4j.Logger |
log
Deprecated.
Class logger.
|
| Modifier | Constructor and Description |
|---|---|
protected |
LegacyNameIdentifierGenerator(Class<? extends NameIdentifierAttributeEncoder> clazz)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize()
Deprecated.
|
NameIdType |
generate(ProfileRequestContext profileRequestContext,
String format)
Deprecated.
|
void |
setActivationCondition(com.google.common.base.Predicate<ProfileRequestContext> condition)
Deprecated.
Set an activation condition that determines whether to run or not.
|
void |
setAttributeContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,AttributeContext> strategy)
Deprecated.
Set the lookup strategy to locate the
AttributeContext to pull from. |
setIdgetIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId@Nonnull private final org.slf4j.Logger log
@Nonnull private com.google.common.base.Predicate<ProfileRequestContext> activationCondition
@Nonnull private com.google.common.base.Function<ProfileRequestContext,AttributeContext> attributeContextLookupStrategy
AttributeContext.@Nonnull private Class<? extends NameIdentifierAttributeEncoder> encoderType
protected LegacyNameIdentifierGenerator(@Nonnull Class<? extends NameIdentifierAttributeEncoder> clazz)
clazz - encoder class typepublic void setActivationCondition(@Nonnull com.google.common.base.Predicate<ProfileRequestContext> condition)
condition - an activation conditionpublic void setAttributeContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,AttributeContext> strategy)
AttributeContext to pull from.strategy - lookup strategyprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractIdentifiedInitializableComponentComponentInitializationException@Nullable public NameIdType generate(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull@NotEmpty String format) throws SAMLException
generate in interface NameIdentifierGenerator<NameIdType extends SAMLObject>SAMLExceptionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.