Package com.yubico.fido.metadata
Class FidoMetadataService.Filters
java.lang.Object
com.yubico.fido.metadata.FidoMetadataService.Filters
- Enclosing class:
- FidoMetadataService
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
This class encapsulates parameters for filtering authenticators in thefilter
setting ofFidoMetadataService
. -
Constructor Summary
-
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 whosestatusReports
array contains no entry withREVOKED
status.
-
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
filters
is 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 whosestatusReports
array contains no entry withREVOKED
status.- 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
statusReports
entries hasATTESTATION_KEY_COMPROMISE
status and either an emptycertificate
field or acertificate
whose public key appears in the authenticator'sattestation certificate chain
.
-