Class AbstractSeedSource
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.authn.totp.impl.AbstractSeedSource
- All Implemented Interfaces:
Consumer<ProfileRequestContext>,Component,DestructableComponent,InitializableComponent
- Direct Known Subclasses:
AttributeResolverSeedSource,StaticSeedSource
@ThreadSafeAfterInit
public abstract class AbstractSeedSource
extends AbstractInitializableComponent
implements Consumer<ProfileRequestContext>
Base class for token seed source implementations.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AbstractSeedSource.EncodingThe encoding to reverse for the seed.private Function<ProfileRequestContext,TOTPContext> Lookup strategy forTOTPContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the encoding of the seeds once they're resolved.Get theTOTPContextlookup strategy.voidSet the encoding of the seeds once they're resolved.voidSet theTOTPContextlookup strategy.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
totpContextLookupStrategy
Lookup strategy forTOTPContext. -
encoding
The encoding to reverse for the seed.
-
-
Constructor Details
-
AbstractSeedSource
public AbstractSeedSource()Constructor.
-
-
Method Details
-
getEncoding
Get the encoding of the seeds once they're resolved.Defaults to
AbstractSeedSource.Encoding.BASE32.- Returns:
- encoding
-
setEncoding
Set the encoding of the seeds once they're resolved.- Parameters:
enc- encoding
-
getTOTPContextLookupStrategy
Get theTOTPContextlookup strategy.- Returns:
- lookup strategy
-
setTOTPContextLookupStrategy
public void setTOTPContextLookupStrategy(@Nonnull Function<ProfileRequestContext, TOTPContext> strategy) Set theTOTPContextlookup strategy.- Parameters:
strategy- lookup strategy
-