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 - CertificateParsingExceptionpublic 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 © 2017 "Tigase, Inc.". All rights reserved.