public abstract class TLSUtil extends Object
Constructor and Description |
---|
TLSUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addCertificate(Map<String,String> params)
Method description
|
static void |
configureSSLContext(Map<String,Object> params)
Method description
|
static SSLContext |
getSSLContext(String protocol,
String hostname)
Method description
|
static SSLContext |
getSSLContext(String protocol,
String hostname,
boolean clientMode)
Method description
|
static SSLContext |
getSSLContext(String protocol,
String hostname,
boolean clientMode,
TrustManager... tm) |
static KeyStore |
getTrustStore()
Method description
|
public static void addCertificate(Map<String,String> params) throws CertificateParsingException
params
- CertificateParsingException
public static void configureSSLContext(Map<String,Object> params)
params
- public static SSLContext getSSLContext(String protocol, String hostname)
protocol
- hostname
- public static SSLContext getSSLContext(String protocol, String hostname, boolean clientMode)
protocol
- hostname
- public static SSLContext getSSLContext(String protocol, String hostname, boolean clientMode, TrustManager... tm)
public static KeyStore getTrustStore()
Copyright © 2019 "Tigase, Inc.". All rights reserved.