Package com.yubico.fido.metadata
Class FidoMetadataService.Filters
java.lang.Object
com.yubico.fido.metadata.FidoMetadataService.Filters
- Enclosing class:
- FidoMetadataService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis class encapsulates parameters for filtering authenticators in thefiltersetting ofFidoMetadataService. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Predicate<T>Combine a set of filters into a filter that requires inputs to satisfy ALL of those filters.Accept any authenticator whose matched metadata entry does NOT indicate a compromised attestation key.static Predicate<MetadataBLOBPayloadEntry>Include any metadata entry whosestatusReportsarray contains no entry withREVOKEDstatus.
-
Constructor Details
-
Filters
public Filters()
-
-
Method Details
-
allOf
Combine a set of filters into a filter that requires inputs to satisfy ALL of those filters.If
filtersis empty, then all inputs will satisfy the resulting filter.- Parameters:
filters- A set of filters.- Returns:
- A filter which only accepts inputs that satisfy ALL of the given
filters.
-
notRevoked
Include any metadata entry whosestatusReportsarray contains no entry withREVOKEDstatus.- See Also:
-
noAttestationKeyCompromise
public static Predicate<FidoMetadataService.Filters.AuthenticatorToBeFiltered> noAttestationKeyCompromise()Accept any authenticator whose matched metadata entry does NOT indicate a compromised attestation key.A metadata entry indicates a compromised attestation key if any of its
statusReportsentries hasATTESTATION_KEY_COMPROMISEstatus and either an emptycertificatefield or acertificatewhose public key appears in the authenticator'sattestation certificate chain.
-