public final class HandshakeCertificates
extends java.lang.Object
This is the most common form of TLS authentication: clients verify that servers are trusted and that they own the hostnames that they represent. Server authentication is required.
To perform server authentication:
This is authentication of the client by the server during the TLS handshake. Client authentication is optional.
To perform client authentication:
Modifier and Type | Class and Description |
---|---|
static class |
HandshakeCertificates.Builder |
Modifier and Type | Field and Description |
---|---|
private javax.net.ssl.X509KeyManager |
keyManager |
private javax.net.ssl.X509TrustManager |
trustManager |
Modifier | Constructor and Description |
---|---|
private |
HandshakeCertificates(javax.net.ssl.X509KeyManager keyManager,
javax.net.ssl.X509TrustManager trustManager) |
Modifier and Type | Method and Description |
---|---|
javax.net.ssl.X509KeyManager |
keyManager() |
javax.net.ssl.SSLContext |
sslContext() |
javax.net.ssl.SSLSocketFactory |
sslSocketFactory() |
javax.net.ssl.X509TrustManager |
trustManager() |
private final javax.net.ssl.X509KeyManager keyManager
private final javax.net.ssl.X509TrustManager trustManager