All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.conscrypt.ConscryptCertStore Maven / Gradle / Ivy

There is a newer version: 2.5.2
Show newest version
package org.conscrypt;

import java.security.cert.X509Certificate;
import java.util.Set;

/**
 * A certificate store that supports additional operations that are used in
 * TrustManagerImpl.  This is primarily implemented by the cert store on the
 * Android platform.
 */
@Internal
public interface ConscryptCertStore {

    /**
     * Returns a stored CA certificate with the same name and public key as the
     * provided {@link X509Certificate}.
     */
    X509Certificate getTrustAnchor(X509Certificate c);

    /**
     * Returns all CA certificates with the public key that was used to sign the
     * provided {@link X509Certificate}.
     */
    Set findAllIssuers(X509Certificate c);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy