@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class VerifyChainSignaturesTrustManager extends java.lang.Object implements javax.net.ssl.X509TrustManager, java.io.Serializable
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType) |
Checks to determine whether the provided client certificate chain should be
trusted.
|
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType) |
Checks to determine whether the provided server certificate chain should be
trusted.
|
java.security.cert.X509Certificate[] |
getAcceptedIssuers() |
Retrieves the accepted issuer certificates for this trust manager.
|
static VerifyChainSignaturesTrustManager |
getInstance() |
Retrieves a singleton instance of this issuer chain trust manager.
|
@NotNull public static VerifyChainSignaturesTrustManager getInstance()
public void checkClientTrusted(@NotNull java.security.cert.X509Certificate[] chain, @NotNull java.lang.String authType) throws java.security.cert.CertificateException
checkClientTrusted in interface javax.net.ssl.X509TrustManagerchain - The client certificate chain for which to make the
determination.authType - The authentication type based on the client certificate.java.security.cert.CertificateException - If the provided client certificate chain
should not be trusted.public void checkServerTrusted(@NotNull java.security.cert.X509Certificate[] chain, @NotNull java.lang.String authType) throws java.security.cert.CertificateException
checkServerTrusted in interface javax.net.ssl.X509TrustManagerchain - The server certificate chain for which to make the
determination.authType - The key exchange algorithm used.java.security.cert.CertificateException - If the provided server certificate chain
should not be trusted.@NotNull public java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface javax.net.ssl.X509TrustManager