public class SSLClientConfigurator extends Object
Modifier and Type | Method and Description |
---|---|
SSLContext |
configure(SSLParams sslParams)
This method creates an SSLContext based on the default provider and then
created TrustManagers, KeyManagers and initializes the SSLContext with
the TrustManager, KeyManager
|
protected Collection<? extends CRL> |
getCRLs(String crlf)
Load the collection of CRLs.
|
String[] |
getEnabledCipherSuites()
gets a list of Enabled Cipher Suites
|
String |
getEnabledCipherSuitesAsString()
Returns a list of Enabled Cipher Suites as a String
|
String[] |
getEnabledProtocols()
Gets a list of Enabled Protocols
|
String |
getEnabledProtocolsAsString()
Returns the list of Enabled Protocols as a comma separated String
|
static SSLClientConfigurator |
getInstance() |
protected KeyManager[] |
getKeyManagers(String algorithm,
String keyAlias)
Gets the initialized key managers.
|
protected CertPathParameters |
getParameters(String algorithm,
String crlf,
KeyStore trustStore)
Return the initialization parameters for the TrustManager.
|
protected TrustManager[] |
getTrustManagers(String algorithm)
Gets the intialized trust managers.
|
void |
setSSLParams(SSLParams sslParams) |
public static SSLClientConfigurator getInstance()
public void setSSLParams(SSLParams sslParams)
public SSLContext configure(SSLParams sslParams)
public String[] getEnabledProtocols()
public String getEnabledProtocolsAsString()
public String[] getEnabledCipherSuites()
public String getEnabledCipherSuitesAsString()
protected KeyManager[] getKeyManagers(String algorithm, String keyAlias) throws Exception
Exception
protected TrustManager[] getTrustManagers(String algorithm) throws Exception
Exception
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
Copyright © 2019. All rights reserved.