Class DefaultPasswordlessCondition
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.authn.duo.DefaultPasswordlessCondition
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Component,DestructableComponent,InitializableComponent
public class DefaultPasswordlessCondition
extends AbstractInitializableComponent
implements Predicate<ProfileRequestContext>
A
Predicate which determines whether a user/device should be allowed,
on subsequent requests, to leverage passwordless authentication.
This is a hook to nmanage the adoption of passwordless by controlling under what conditions a device will receive a cookie that authorizes the option when invoked in that mode. The default condition is driven solely by examining the factor used by the user, but this may be combined by deployers with other custom conditions.
- Since:
- 2.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionAllowed factors that qualify. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAllowedFactors(Collection<String> factors) Sets the allowable Duo factors that qualify for the condition.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
-
allowedFactors
Allowed factors that qualify.
-
-
Constructor Details
-
DefaultPasswordlessCondition
public DefaultPasswordlessCondition()Constructor.
-
-
Method Details
-
setAllowedFactors
Sets the allowable Duo factors that qualify for the condition.- Parameters:
factors- allowed factors
-
test
- Specified by:
testin interfacePredicate<ProfileRequestContext>
-