public interface X509TrustManager extends TrustManager
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType)
Checks whether the specified certificate chain (partial or complete) can
be validated and is trusted for client authentication for the specified
authentication type.
|
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
Checks whether the specified certificate chain (partial or complete) can
be validated and is trusted for server authentication for the specified
key exchange algorithm.
|
X509Certificate[] |
getAcceptedIssuers()
Returns the list of certificate issuer authorities which are trusted for
authentication of peers.
|
void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
chain - the certificate chain to validate.authType - the authentication type used.CertificateException - if the certificate chain can't be validated or isn't trusted.IllegalArgumentException - if the specified certificate chain is empty or null,
or if the specified authentication type is null or an
empty string.void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
chain - the certificate chain to validate.authType - the key exchange algorithm name.CertificateException - if the certificate chain can't be validated or isn't trusted.IllegalArgumentException - if the specified certificate chain is empty or null,
or if the specified authentication type is null or an
empty string.X509Certificate[] getAcceptedIssuers()