Class UsernamelessFlowEnabled
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.authn.webauthn.context.logic.UsernamelessFlowEnabled
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Component,DestructableComponent,InitializableComponent
public class UsernamelessFlowEnabled
extends AbstractInitializableComponent
implements Predicate<ProfileRequestContext>
Predicate to determine if the user is required to enter their username or not. True implies a usernameless flow
whilst false implies a passwordless flow.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ProfileRequestContext>Determines if we want a usernameless flow (true), or a passwordless flow (false).private final org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetEnabled(boolean flag) Set a flag that determines if we want a usernameless flow (true), or a passwordless flow (false).voidsetEnabled(Predicate<ProfileRequestContext> predicate) Set a predicate that determines if we want a usernameless flow (true), or a passwordless flow (false).booleantest(ProfileRequestContext input) Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
enabled
Determines if we want a usernameless flow (true), or a passwordless flow (false). Default is false (passwordless).
-
-
Constructor Details
-
UsernamelessFlowEnabled
public UsernamelessFlowEnabled()Constructor.
-
-
Method Details
-
setEnabled
Set a predicate that determines if we want a usernameless flow (true), or a passwordless flow (false).- Parameters:
predicate- the predicate
-
setEnabled
public void setEnabled(boolean flag) Set a flag that determines if we want a usernameless flow (true), or a passwordless flow (false).- Parameters:
flag- the flag to set
-
test
- Specified by:
testin interfacePredicate<ProfileRequestContext>
-