Class AuthenticatorCapabilitiesPolicyRule

All Implemented Interfaces:
AuthenticatorPolicy, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent

public class AuthenticatorCapabilitiesPolicyRule extends AbstractAuthenticatorPolicyRule
An authenticator policy that inspects metadata to determine if the authenticator should be allowed or rejected.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • authenticatorCapabilityAcceptor

      @Nonnull private Predicate<Set<com.yubico.fido.metadata.MetadataBLOBPayloadEntry>> authenticatorCapabilityAcceptor
      A customizable predicate that determines if this authenticators capabilities should be accepted or rejected. Defaults to ALLOW.
  • Constructor Details

    • AuthenticatorCapabilitiesPolicyRule

      public AuthenticatorCapabilitiesPolicyRule()
      Constructor.
  • Method Details

    • setAuthenticatorCapabilityAcceptor

      public void setAuthenticatorCapabilityAcceptor(@Nonnull Predicate<Set<com.yubico.fido.metadata.MetadataBLOBPayloadEntry>> predicate)
      Set the predicate that determines if this authenticators capabilities should be accepted or rejected.
      Parameters:
      predicate - the predicate which determines if this authenticator, based on its metadata, should be accepted.
    • doAccept

      public AuthenticatorPolicy.AuthenticatorPolicyOutcome doAccept(@Nonnull com.yubico.fido.metadata.AAGUID aaguid, @Nullable ProfileRequestContext prc)
      Execute the policy. Return true if allowed, false otherwise. Implementations should override this method.
      Specified by:
      doAccept in class AbstractAuthenticatorPolicyRule
      Parameters:
      aaguid - the authenticator attestation GUID.
      prc - the profile request context
      Returns:
      true if the policy allows the authenticator, false otherwise.