public class JSSESocketFactory extends Object implements SSLUtil
SSLUtil.ProtocolInfo
Constructor and Description |
---|
JSSESocketFactory(SSLHostConfig sslHostConfig,
SSLHostConfigCertificate certificate) |
Modifier and Type | Method and Description |
---|---|
void |
configureSessionContext(SSLSessionContext sslSessionContext) |
SSLContext |
createSSLContext(List<String> negotiableProtocols) |
protected Collection<? extends CRL> |
getCRLs(String crlf)
Load the collection of CRLs.
|
String[] |
getEnableableCiphers(SSLContext context)
Determines the SSL cipher suites that can be enabled, based on the
configuration of the endpoint and the ciphers supported by the SSL
implementation.
|
String[] |
getEnableableProtocols(SSLContext context)
Determines the SSL protocol variants that can be enabled, based on the
configuration of the endpoint and the ciphers supported by the SSL
implementation.
|
KeyManager[] |
getKeyManagers() |
protected CertPathParameters |
getParameters(String algorithm,
String crlf,
KeyStore trustStore)
Return the initialization parameters for the TrustManager.
|
TrustManager[] |
getTrustManagers() |
protected KeyStore |
getTrustStore() |
public JSSESocketFactory(SSLHostConfig sslHostConfig, SSLHostConfigCertificate certificate)
public String[] getEnableableCiphers(SSLContext context)
SSLUtil
getEnableableCiphers
in interface SSLUtil
context
- An initialized context to obtain the supported ciphers from.protected KeyStore getTrustStore() throws IOException
IOException
public SSLContext createSSLContext(List<String> negotiableProtocols) throws NoSuchAlgorithmException
createSSLContext
in interface SSLUtil
NoSuchAlgorithmException
public KeyManager[] getKeyManagers() throws Exception
getKeyManagers
in interface SSLUtil
Exception
public TrustManager[] getTrustManagers() throws Exception
getTrustManagers
in interface SSLUtil
Exception
public void configureSessionContext(SSLSessionContext sslSessionContext)
configureSessionContext
in interface SSLUtil
protected CertPathParameters getParameters(String algorithm, String crlf, KeyStore trustStore) throws Exception
PKIX
is supported.algorithm
- The algorithm to get parameters for.crlf
- The path to the CRL file.trustStore
- The configured TrustStore.Exception
protected Collection<? extends CRL> getCRLs(String crlf) throws IOException, CRLException, CertificateException
public String[] getEnableableProtocols(SSLContext context)
SSLUtil
getEnableableProtocols
in interface SSLUtil
context
- An initialized context to obtain the supported protocols from.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.