Package net.shibboleth.idp.saml.nameid
Class AbstractSAML2NameIDGenerator
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
org.opensaml.saml.common.profile.AbstractNameIdentifierGenerator<NameID>
org.opensaml.saml.saml2.profile.AbstractSAML2NameIDGenerator
net.shibboleth.idp.saml.nameid.AbstractSAML2NameIDGenerator
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,FormatSpecificNameIdentifierGenerator<NameID>,NameIdentifierGenerator<NameID>,SAML2NameIDGenerator
- Direct Known Subclasses:
AttributeSourcedSAML2NameIDGenerator,PersistentSAML2NameIDGenerator,TransientSAML2NameIDGenerator
IdP-specific base class for SAML 2.0 NameID generation that extends the OpenSAML base class with support for
BrowserSSOProfileConfiguration.getSPNameQualifier(org.opensaml.profile.context.ProfileRequestContext).- Since:
- 5.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy function to lookup RelyingPartyContext.private Function<ProfileRequestContext,AuthnRequest> Strategy used to locate anAuthnRequestto check. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetEffectiveSPNameQualifier(ProfileRequestContext profileRequestContext) voidSet the lookup strategy to use to locate theRelyingPartyContext.voidSet the strategy used to locate theAuthnRequestto check for aNameIDPolicy.Methods inherited from class org.opensaml.saml.saml2.profile.AbstractSAML2NameIDGenerator
doGenerateMethods inherited from class org.opensaml.saml.common.profile.AbstractNameIdentifierGenerator
generate, getDefaultIdPNameQualifierLookupStrategy, getDefaultSPNameQualifierLookupStrategy, getEffectiveIdPNameQualifier, getFormat, getIdentifier, getIdPNameQualifier, getSPNameQualifier, getSPProvidedID, isOmitQualifiers, setActivationCondition, setDefaultIdPNameQualifierLookupStrategy, setDefaultSPNameQualifierLookupStrategy, setFormat, setIdPNameQualifier, setOmitQualifiers, setSPNameQualifier, setSPProvidedId, testMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface org.opensaml.saml.saml2.profile.SAML2NameIDGenerator
generate
-
Field Details
-
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy function to lookup RelyingPartyContext. -
requestLookupStrategy
Strategy used to locate anAuthnRequestto check.
-
-
Constructor Details
-
AbstractSAML2NameIDGenerator
public AbstractSAML2NameIDGenerator()Constructor.
-
-
Method Details
-
setRequestLookupStrategy
public void setRequestLookupStrategy(@Nonnull Function<ProfileRequestContext, AuthnRequest> strategy) Set the strategy used to locate theAuthnRequestto check for aNameIDPolicy.- Overrides:
setRequestLookupStrategyin classAbstractSAML2NameIDGenerator- Parameters:
strategy- lookup strategy
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the lookup strategy to use to locate theRelyingPartyContext.- Parameters:
strategy- lookup function to use
-
getEffectiveSPNameQualifier
@Nullable protected String getEffectiveSPNameQualifier(@Nonnull ProfileRequestContext profileRequestContext) - Overrides:
getEffectiveSPNameQualifierin classAbstractSAML2NameIDGenerator
-