Package com.yubico.webauthn.attestation
Interface MetadataService
-
public interface MetadataService
Abstraction of a repository which can look up authenticator attestation metadata from an attestation certificate chain.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attestation
getAttestation(java.util.List<java.security.cert.X509Certificate> attestationCertificateChain)
Attempt to look up attestation for a chain of certificates
-
-
-
Method Detail
-
getAttestation
Attestation getAttestation(java.util.List<java.security.cert.X509Certificate> attestationCertificateChain) throws java.security.cert.CertificateEncodingException
Attempt to look up attestation for a chain of certificates- Parameters:
attestationCertificateChain
- a certificate chain, where each certificate in the list should be signed by the following certificate.- Returns:
- Attestation metadata, if any is available. If the certificate chain is empty, or if there is no signature
path from a trusted attestation root to the first certificate in
attestationCertificateChange
, returnAttestation.empty()
. - Throws:
java.security.cert.CertificateEncodingException
-
-