Class ChainingAuthenticatorPolicyRule
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.plugin.authn.webauthn.admin.policy.impl.AbstractAuthenticatorPolicyRule
net.shibboleth.idp.plugin.authn.webauthn.admin.policy.impl.ChainingAuthenticatorPolicyRule
- All Implemented Interfaces:
AuthenticatorPolicy,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
A
AuthenticatorPolicy implementation that verifies an authenticator is acceptable based on a chain of
configured rules.
Verification ends if any of the chained rules signals the authenticator should be rejected.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.plugin.authn.webauthn.admin.policy.AuthenticatorPolicy
AuthenticatorPolicy.AuthenticatorPolicyOutcome -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<AuthenticatorPolicy>An ordered chain of authenticator policies.private final org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoAccept(com.yubico.fido.metadata.AAGUID aaguid, ProfileRequestContext prc) Execute the policy.protected voidvoidSet the chain of policies that should be applied to the authenticator.Methods inherited from class net.shibboleth.idp.plugin.authn.webauthn.admin.policy.impl.AbstractAuthenticatorPolicyRule
evaluate, getFidoMetadataService, setActivationCondition, setActivationConditionStrategy, setFidoMetadataServiceMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
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. -
authenticatorPolicyChain
An ordered chain of authenticator policies.
-
-
Constructor Details
-
ChainingAuthenticatorPolicyRule
public ChainingAuthenticatorPolicyRule()
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
setAuthenticatorPolicyChain
Set the chain of policies that should be applied to the authenticator. Every policy must allow the authenticator to be accepted.- Parameters:
chain- The authenticator policy chain to set.
-
doAccept
protected AuthenticatorPolicy.AuthenticatorPolicyOutcome doAccept(@Nonnull com.yubico.fido.metadata.AAGUID aaguid, @Nonnull ProfileRequestContext prc) Execute the policy. Return true if allowed, false otherwise. Implementations should override this method.- Specified by:
doAcceptin classAbstractAuthenticatorPolicyRule- Parameters:
aaguid- the authenticator attestation GUID.prc- the profile request context- Returns:
- true if the policy allows the authenticator, false otherwise.
-