public class HostnameVerifyingX509ExtendedTrustManager
extends javax.net.ssl.X509ExtendedTrustManager
| Constructor and Description |
|---|
HostnameVerifyingX509ExtendedTrustManager(boolean clientSideHostnameVerificationEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType) |
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
java.net.Socket socket) |
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
javax.net.ssl.SSLEngine engine) |
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType) |
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
java.net.Socket socket) |
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
javax.net.ssl.SSLEngine engine) |
java.security.cert.X509Certificate[] |
getAcceptedIssuers() |
void |
performHostVerification(java.net.InetAddress inetAddress,
java.security.cert.X509Certificate certificate)
Compares peer's hostname with the one stored in the provided client certificate.
|
void |
performHostVerification(java.lang.String hostAddress,
java.lang.String hostName,
java.security.cert.X509Certificate certificate)
Compares peer's hostname with the one stored in the provided client certificate.
|
public HostnameVerifyingX509ExtendedTrustManager(boolean clientSideHostnameVerificationEnabled)
public java.security.cert.X509Certificate[] getAcceptedIssuers()
public void checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
java.net.Socket socket)
throws java.security.cert.CertificateException
checkClientTrusted in class javax.net.ssl.X509ExtendedTrustManagerjava.security.cert.CertificateExceptionpublic void checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
java.net.Socket socket)
throws java.security.cert.CertificateException
checkServerTrusted in class javax.net.ssl.X509ExtendedTrustManagerjava.security.cert.CertificateExceptionpublic void checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
javax.net.ssl.SSLEngine engine)
throws java.security.cert.CertificateException
checkClientTrusted in class javax.net.ssl.X509ExtendedTrustManagerjava.security.cert.CertificateExceptionpublic void checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType,
javax.net.ssl.SSLEngine engine)
throws java.security.cert.CertificateException
checkServerTrusted in class javax.net.ssl.X509ExtendedTrustManagerjava.security.cert.CertificateExceptionpublic void checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
throws java.security.cert.CertificateException
java.security.cert.CertificateExceptionpublic void checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
throws java.security.cert.CertificateException
java.security.cert.CertificateExceptionpublic void performHostVerification(java.net.InetAddress inetAddress,
java.security.cert.X509Certificate certificate)
throws java.security.cert.CertificateException
inetAddress - Peer's inet address.certificate - Peer's certificatejava.security.cert.CertificateException - Thrown if the provided certificate doesn't match the peer hostname.public void performHostVerification(java.lang.String hostAddress,
java.lang.String hostName,
java.security.cert.X509Certificate certificate)
throws java.security.cert.CertificateException
hostAddress - Peer's host address.hostName - Peer's host name.certificate - Peer's certificatejava.security.cert.CertificateException - Thrown if the provided certificate doesn't match the peer hostname.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.