Class CompositeTrustResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompositeTrustResolver

        public CompositeTrustResolver​(java.util.List<TrustResolver> resolvers)
    • Method Detail

      • resolveTrustAnchor

        public java.util.Optional<java.security.cert.X509Certificate> resolveTrustAnchor​(java.security.cert.X509Certificate attestationCertificate,
                                                                                         java.util.List<java.security.cert.X509Certificate> certificateChain)
        Description copied from interface: TrustResolver
        Resolve a trusted root anchor for the given attestation certificate and certificate chain
        Specified by:
        resolveTrustAnchor in interface TrustResolver
        Parameters:
        attestationCertificate - The attestation certificate
        certificateChain - Zero or more certificates, of which the first has signed attestationCertificate and each of the remaining certificates has signed the certificate preceding it.
        Returns:
        A trusted root certificate from which there is a signature path to attestationCertificate, if one exists.