public final class TlsUtil
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static char[] |
password |
| Modifier and Type | Method | Description |
|---|---|---|
static HandshakeCertificates |
localhost() |
Returns an SSL client for this host's localhost address.
|
static javax.net.ssl.X509KeyManager |
newKeyManager(java.lang.String keyStoreType,
HeldCertificate heldCertificate,
java.security.cert.X509Certificate... intermediates) |
Returns a key manager for the held certificate and its chain.
|
static javax.net.ssl.X509TrustManager |
newTrustManager(java.lang.String keyStoreType,
java.util.List<java.security.cert.X509Certificate> trustedCertificates) |
Returns a trust manager that trusts
trustedCertificates. |
public static HandshakeCertificates localhost()
public static javax.net.ssl.X509TrustManager newTrustManager(java.lang.String keyStoreType,
java.util.List<java.security.cert.X509Certificate> trustedCertificates)
throws java.security.GeneralSecurityException
trustedCertificates.java.security.GeneralSecurityExceptionpublic static javax.net.ssl.X509KeyManager newKeyManager(java.lang.String keyStoreType,
HeldCertificate heldCertificate,
java.security.cert.X509Certificate... intermediates)
throws java.security.GeneralSecurityException
heldCertificate is null.java.security.GeneralSecurityExceptionCopyright © 2020. All rights reserved.