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