@ThreadSafeAfterInit public class PersistentSAML2NameIDGenerator extends org.opensaml.saml.saml2.profile.AbstractSAML2NameIDGenerator
NameID objects that provides a source/seed ID based on IdPAttribute
data.| Modifier and Type | Field and Description |
|---|---|
private Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> |
attributeContextLookupStrategy
Strategy function to lookup AttributeContext.
|
private List<String> |
attributeSourceIds
Attribute(s) to use as an identifier source.
|
private org.slf4j.Logger |
log
Class logger.
|
private PersistentIdGenerationStrategy |
persistentIdStrategy
Generation strategy for IDs.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,SubjectContext> |
subjectContextLookupStrategy
Strategy function to lookup SubjectContext.
|
private boolean |
useUnfilteredAttributes
Predicate to select whether to look at filtered or unfiltered attributes.
|
| Constructor and Description |
|---|
PersistentSAML2NameIDGenerator()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
protected String |
getIdentifier(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
void |
setAttributeContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> strategy)
Set the lookup strategy to use to locate the
AttributeContext. |
void |
setAttributeSourceIds(List<String> ids)
Set the attribute sources to pull from.
|
void |
setPersistentIdGenerator(PersistentIdGenerationStrategy strategy)
Set the generation strategy for the persistent ID.
|
void |
setSubjectContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,SubjectContext> strategy)
Set the lookup strategy to use to locate the
SubjectContext. |
void |
setUseUnfilteredAttributes(boolean flag)
Set whether to source the input attributes from the unfiltered set.
|
doGenerate, getEffectiveSPNameQualifier, setRequestLookupStrategyapply, getDefaultIdPNameQualifierLookupStrategy, getDefaultSPNameQualifierLookupStrategy, getEffectiveIdPNameQualifier, getFormat, getIdPNameQualifier, getSPNameQualifier, getSPProvidedID, isOmitQualifiers, setActivationCondition, setDefaultIdPNameQualifierLookupStrategy, setDefaultSPNameQualifierLookupStrategy, setFormat, setIdPNameQualifier, setOmitQualifiers, setSPNameQualifier, setSPProvidedIdsetIdgetIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId@Nonnull private final org.slf4j.Logger log
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,SubjectContext> subjectContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> attributeContextLookupStrategy
@Nonnull @NonnullElements private List<String> attributeSourceIds
@NonnullAfterInit private PersistentIdGenerationStrategy persistentIdStrategy
private boolean useUnfilteredAttributes
public PersistentSAML2NameIDGenerator()
public void setSubjectContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,SubjectContext> strategy)
SubjectContext.strategy - lookup function to usepublic void setAttributeContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,AttributeContext> strategy)
AttributeContext.strategy - lookup function to usepublic void setAttributeSourceIds(@Nonnull@NonnullElements List<String> ids)
ids - attribute IDs to pull frompublic void setPersistentIdGenerator(@Nonnull PersistentIdGenerationStrategy strategy)
strategy - generation strategypublic void setUseUnfilteredAttributes(boolean flag)
Defaults to true, since the input is not directly exposed.
flag - flag to setprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class org.opensaml.saml.common.profile.AbstractNameIdentifierGenerator<org.opensaml.saml.saml2.core.NameID>ComponentInitializationException@Nullable protected String getIdentifier(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext) throws org.opensaml.saml.common.SAMLException
getIdentifier in class org.opensaml.saml.common.profile.AbstractNameIdentifierGenerator<org.opensaml.saml.saml2.core.NameID>org.opensaml.saml.common.SAMLExceptionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.