javax.net.ssl
Interface X509TrustManager

All Superinterfaces:
TrustManager

public interface X509TrustManager
extends TrustManager

A trust manager for dealing with X.509 certificates.


Method Summary
 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.
 

Method Detail

checkClientTrusted

void checkClientTrusted(X509Certificate[] chain,
                        String authType)
                        throws CertificateException
Checks if a certificate chain sent by the client is trusted.

Parameters:
chain - The certificate chain to check.
authType - The authentication type.
Throws:
CertificateException - If the client's certificates are not trusted.

checkServerTrusted

void checkServerTrusted(X509Certificate[] chain,
                        String authType)
                        throws CertificateException
Checks if a certificate chain sent by the server is trusted.

Parameters:
chain - The certificate chain to check.
authType - The authentication type.
Throws:
CertificateException - If the server's certificates are not trusted.

getAcceptedIssuers

X509Certificate[] getAcceptedIssuers()
Returns the list of trusted issuer certificates currently in use.

Returns:
The list of trusted issuer certificates.