Class DefaultDuoCleanupHook
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.authn.duo.DefaultDuoCleanupHook
- All Implemented Interfaces:
Consumer<ProfileRequestContext>,Component,DestructableComponent,InitializableComponent
public class DefaultDuoCleanupHook
extends AbstractInitializableComponent
implements Consumer<ProfileRequestContext>
A default cleanup hook for the DuoOIDC flow that handles both standard
and passwordless scenarios, with configuration flexibility for the deployer.
- Since:
- 2.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether to remove aDuoPasswordlessContextif present. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ProfileRequestContext input) voidsetRemovePasswordlessContext(boolean flag) Sets whether to remove aDuoPasswordlessContextif present.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
removePasswordlessContext
private boolean removePasswordlessContextWhether to remove aDuoPasswordlessContextif present.
-
-
Constructor Details
-
DefaultDuoCleanupHook
public DefaultDuoCleanupHook()Constructor.
-
-
Method Details
-
setRemovePasswordlessContext
public void setRemovePasswordlessContext(boolean flag) Sets whether to remove aDuoPasswordlessContextif present.- Parameters:
flag- flag to set
-
accept
- Specified by:
acceptin interfaceConsumer<ProfileRequestContext>
-