|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.io.SSLContextContainer
public class SSLContextContainer
Created: Oct 15, 2010 2:40:49 PM
| Field Summary | |
|---|---|
static String |
PER_DOMAIN_CERTIFICATE_KEY
|
| Constructor Summary | |
|---|---|
SSLContextContainer()
|
|
| Method Summary | ||
|---|---|---|
void |
addCertificates(Map<String,String> params)
Method description |
|
static
|
find(Map<String,T> data,
String key)
|
|
SSLContext |
getSSLContext(String protocol,
String hostname,
boolean clientMode)
Method getSSLContext creates and returns new SSLContext for
a given domain (hostname). |
|
SSLContext |
getSSLContext(String protocol,
String hostname,
boolean clientMode,
TrustManager... tms)
Method description |
|
KeyStore |
getTrustStore()
Method description |
|
void |
init(Map<String,Object> params)
Method description |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PER_DOMAIN_CERTIFICATE_KEY
| Constructor Detail |
|---|
public SSLContextContainer()
| Method Detail |
|---|
public void addCertificates(Map<String,String> params)
throws CertificateParsingException
addCertificates in interface SSLContextContainerIfcparams -
CertificateParsingException
public SSLContext getSSLContext(String protocol,
String hostname,
boolean clientMode)
SSLContextContainerIfcgetSSLContext creates and returns new SSLContext for
a given domain (hostname). For creation of the SSLContext a certificate
associated with this domain (hostname) should be used. If there is no
specific certificate for a given domain then default certificate should
be used.
getSSLContext in interface SSLContextContainerIfcprotocol - a String is either 'SSL' or 'TLS' value.hostname - a String value keeps a hostname or domain for
SSLContext.
SSLContext value
public static <T> T find(Map<String,T> data,
String key)
public SSLContext getSSLContext(String protocol,
String hostname,
boolean clientMode,
TrustManager... tms)
getSSLContext in interface SSLContextContainerIfcprotocol - hostname -
public KeyStore getTrustStore()
getTrustStore in interface SSLContextContainerIfcpublic void init(Map<String,Object> params)
init in interface SSLContextContainerIfcparams -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||