Class IsAdminUsernameCollectionEnabled
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.plugin.authn.webauthn.context.logic.IsAdminUsernameCollectionEnabled
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class IsAdminUsernameCollectionEnabled
extends AbstractIdentifiableInitializableComponent
implements Predicate<ProfileRequestContext>
A predicate that determines if username collection is required as a first step to the registration process. This is
determined either from a static flag, or a dynamic function.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private Predicate<ProfileRequestContext>The predicate that determines if username collection is required. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUsernameCollectionRequired(boolean flag) Set the flag that determines if username collection is required.voidSet the predicate that determines if username collection is required.booleantest(ProfileRequestContext input) Methods 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
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
usernameCollectionRequiredPredicate
The predicate that determines if username collection is required.
-
-
Constructor Details
-
IsAdminUsernameCollectionEnabled
public IsAdminUsernameCollectionEnabled()
-
-
Method Details
-
setUsernameCollectionRequiredPredicate
Set the predicate that determines if username collection is required.- Parameters:
predicate- is username collection required, predicate.
-
setUsernameCollectionRequired
public void setUsernameCollectionRequired(boolean flag) Set the flag that determines if username collection is required.- Parameters:
flag- is username collection required?.
-
test
- Specified by:
testin interfacePredicate<ProfileRequestContext>
-