Class ChainingCredentialPolicyRule
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.plugin.authn.webauthn.policy.impl.AbstractCredentialPolicyRule
net.shibboleth.idp.plugin.authn.webauthn.policy.impl.ChainingCredentialPolicyRule
- All Implemented Interfaces:
CredentialPolicy,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
A
CredentialPolicy implementation that verifies an authentication credential is acceptable based on a
chain of configured rules.
Verification ends if any of the chained rules signals the authentication credential should be rejected.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.plugin.authn.webauthn.policy.CredentialPolicy
CredentialPolicy.CredentialPolicyOutcome -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<CredentialPolicy>An ordered chain of authentication credentials policies.private final org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CredentialPolicy.CredentialPolicyOutcomedoEvaluate(EnhancedCredentialRecord credential, ProfileRequestContext prc, WebAuthnAuthenticationContext webAuthnContext) Execute the policy.protected voidvoidSet the chain of policies that should be applied to the authentication credential.Methods inherited from class net.shibboleth.idp.plugin.authn.webauthn.policy.impl.AbstractCredentialPolicyRule
evaluate, getFidoMetadataService, setActivationCondition, setActivationConditionStrategy, setFidoMetadataService, setWebAuthnContextLookupStrategyMethods 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. -
credentialPolicyChain
An ordered chain of authentication credentials policies.
-
-
Constructor Details
-
ChainingCredentialPolicyRule
public ChainingCredentialPolicyRule()
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
setCredentialPolicyChain
Set the chain of policies that should be applied to the authentication credential.- Parameters:
chain- the authentication credential policy chain to set.
-
doEvaluate
protected CredentialPolicy.CredentialPolicyOutcome doEvaluate(@Nonnull EnhancedCredentialRecord credential, @Nonnull ProfileRequestContext prc, @Nonnull WebAuthnAuthenticationContext webAuthnContext) Execute the policy. Implementations should override this method.- Specified by:
doEvaluatein classAbstractCredentialPolicyRule- Parameters:
credential- the credential to check the policy rules forprc- the profile request contextwebAuthnContext- the WebAuthn authentication context- Returns:
- the credential policy outcome
-