Class CompositeAttestationResolver
- java.lang.Object
-
- com.yubico.webauthn.attestation.resolver.CompositeAttestationResolver
-
- All Implemented Interfaces:
AttestationResolver
public final class CompositeAttestationResolver extends java.lang.Object implements AttestationResolver
AnAttestationResolver
whoseresolve(X509Certificate, List)
method callsAttestationResolver.resolve(X509Certificate, List)
on each of the subordinateAttestationResolver
s in turn, and returns the first non-null
result.
-
-
Constructor Summary
Constructors Constructor Description CompositeAttestationResolver(java.util.List<AttestationResolver> resolvers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<com.yubico.webauthn.attestation.Attestation>
resolve(java.security.cert.X509Certificate attestationCertificate, java.util.List<java.security.cert.X509Certificate> certificateChain)
com.yubico.webauthn.attestation.Attestation
untrustedFromCertificate(java.security.cert.X509Certificate attestationCertificate)
Delegates to the first subordinate resolver, or throws an exception if there is none.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.yubico.webauthn.attestation.AttestationResolver
resolve
-
-
-
-
Constructor Detail
-
CompositeAttestationResolver
public CompositeAttestationResolver(java.util.List<AttestationResolver> resolvers)
-
-
Method Detail
-
resolve
public java.util.Optional<com.yubico.webauthn.attestation.Attestation> resolve(java.security.cert.X509Certificate attestationCertificate, java.util.List<java.security.cert.X509Certificate> certificateChain)
- Specified by:
resolve
in interfaceAttestationResolver
-
untrustedFromCertificate
public com.yubico.webauthn.attestation.Attestation untrustedFromCertificate(java.security.cert.X509Certificate attestationCertificate)
Delegates to the first subordinate resolver, or throws an exception if there is none.- Specified by:
untrustedFromCertificate
in interfaceAttestationResolver
-
-