public final class CompositeTrustResolver extends java.lang.Object implements TrustResolver
TrustResolver
whose resolveTrustAnchor(X509Certificate,
List)
method calls TrustResolver.resolveTrustAnchor(X509Certificate,
List)
on each of the subordinate TrustResolver
s in turn, and
returns the first non-null
result.Constructor and Description |
---|
CompositeTrustResolver(java.util.List<TrustResolver> resolvers) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.security.cert.X509Certificate> |
resolveTrustAnchor(java.security.cert.X509Certificate attestationCertificate,
java.util.List<java.security.cert.X509Certificate> certificateChain)
Resolve a trusted root anchor for the given attestation certificate and certificate chain
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveTrustAnchor
public CompositeTrustResolver(java.util.List<TrustResolver> resolvers)
public java.util.Optional<java.security.cert.X509Certificate> resolveTrustAnchor(java.security.cert.X509Certificate attestationCertificate, java.util.List<java.security.cert.X509Certificate> certificateChain)
TrustResolver
resolveTrustAnchor
in interface TrustResolver
attestationCertificate
- The attestation certificatecertificateChain
- Zero or more certificates, of which the first
has signed attestationCertificate
and each of the
remaining certificates has signed the certificate preceding it.attestationCertificate
, if one exists.