javax.net.ssl
Interface X509TrustManager
- TrustManager
public interface X509TrustManager
A trust manager for dealing with X.509 certificates.
void | checkClientTrusted(X509Certificate[] chain, String authType) - Checks if a certificate chain sent by the client is trusted.
|
void | checkServerTrusted(X509Certificate[] chain, String authType) - Checks if a certificate chain sent by the server is trusted.
|
X509Certificate[] | getAcceptedIssuers() - Returns the list of trusted issuer certificates currently in use.
|
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain,
String authType)
throws CertificateException
Checks if a certificate chain sent by the client is trusted.
chain
- The certificate chain to check.authType
- The authentication type.
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain,
String authType)
throws CertificateException
Checks if a certificate chain sent by the server is trusted.
chain
- The certificate chain to check.authType
- The authentication type.
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
Returns the list of trusted issuer certificates currently in use.
- The list of trusted issuer certificates.