public class SslConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_KEYMANAGERFACTORY_ALGORITHM |
static String |
DEFAULT_TRUSTMANAGERFACTORY_ALGORITHM |
| Constructor and Description |
|---|
SslConfiguration() |
public static final String DEFAULT_KEYMANAGERFACTORY_ALGORITHM
public static final String DEFAULT_TRUSTMANAGERFACTORY_ALGORITHM
public String[] getExcludeProtocols()
SSLEngine.setEnabledProtocols(String[])public void setExcludeProtocols(String... protocols)
protocols - The array of protocol names to exclude from
SSLEngine.setEnabledProtocols(String[])public void addExcludeProtocols(String... protocol)
protocol - Protocol names to add to SSLEngine.setEnabledProtocols(String[])public String[] getIncludeProtocols()
SSLEngine.setEnabledProtocols(String[])public void setIncludeProtocols(String... protocols)
protocols - The array of protocol names to include in
SSLEngine.setEnabledProtocols(String[])public String[] getExcludeCipherSuites()
SSLEngine.setEnabledCipherSuites(String[])public void setExcludeCipherSuites(String... cipherSuites)
cipherSuites - The array of cipher suite names to exclude from
SSLEngine.setEnabledCipherSuites(String[])public void addExcludeCipherSuites(String... cipher)
cipher - Cipher names to add to SSLEngine.setEnabledCipherSuites(String[])public String[] getIncludeCipherSuites()
SSLEngine.setEnabledCipherSuites(String[])public void setIncludeCipherSuites(String... cipherSuites)
cipherSuites - The array of cipher suite names to include in
SSLEngine.setEnabledCipherSuites(String[])public String getKeyStorePath()
public void setKeyStorePath(String keyStorePath)
keyStorePath - The file or URL of the SSL Key store.public String getKeyStoreProvider()
public void setKeyStoreProvider(String keyStoreProvider)
keyStoreProvider - The provider of the key storepublic String getKeyStoreType()
public void setKeyStoreType(String keyStoreType)
keyStoreType - The type of the key store (default "JKS")public String getCertAlias()
public void setCertAlias(String certAlias)
certAlias - Alias of SSL certificate for the connectorpublic String getTrustStorePath()
public void setTrustStorePath(String trustStorePath)
trustStorePath - The file name or URL of the trust store locationpublic String getTrustStoreProvider()
public void setTrustStoreProvider(String trustStoreProvider)
trustStoreProvider - The provider of the trust storepublic String getTrustStoreType()
public void setTrustStoreType(String trustStoreType)
trustStoreType - The type of the trust store (default "JKS")public boolean getNeedClientAuth()
SSLEngine.getNeedClientAuth()public void setNeedClientAuth(boolean needClientAuth)
needClientAuth - True if SSL needs client authentication.public boolean getWantClientAuth()
SSLEngine.getWantClientAuth()public void setWantClientAuth(boolean wantClientAuth)
wantClientAuth - True if SSL wants client authentication.public boolean isValidateCerts()
public void setValidateCerts(boolean validateCerts)
validateCerts - true if SSL certificates have to be validatedpublic boolean isValidatePeerCerts()
public void setValidatePeerCerts(boolean validatePeerCerts)
validatePeerCerts - true if SSL certificates of the peer have to be validatedpublic boolean isAllowRenegotiate()
public void setAllowRenegotiate(boolean allowRenegotiate)
allowRenegotiate - true if re-negotiation is allowed (default false)public void setKeyStorePassword(String password)
password - The password for the key storepublic String getKeyStorePassword()
public void setKeyManagerPassword(String password)
password - The password (if any) for the specific key within the key storepublic String getKeyManagerPassword()
public void setTrustStorePassword(String password)
password - The password for the trust storepublic String getTrustStorePassword()
public String getProvider()
SSLContext.getInstance(String, String)public void setProvider(String provider)
provider - The SSL provider name, which if set is passed to
SSLContext.getInstance(String, String)public String getProtocol()
SSLContext.getInstance(String, String)public void setProtocol(String protocol)
protocol - The SSL protocol (default "TLS") passed to
SSLContext.getInstance(String, String)public String getSecureRandomAlgorithm()
SecureRandom.getInstance(String) to obtain the SecureRandom instance passed to
SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], SecureRandom)public void setSecureRandomAlgorithm(String algorithm)
algorithm - The algorithm name, which if set is passed to
SecureRandom.getInstance(String) to obtain the SecureRandom instance passed to
SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], SecureRandom)public String getKeyManagerFactoryAlgorithm()
KeyManagerFactorypublic void setKeyManagerFactoryAlgorithm(String algorithm)
algorithm - The algorithm name (default "SunX509") used by the KeyManagerFactorypublic String getTrustManagerFactoryAlgorithm()
TrustManagerFactorypublic boolean isTrustAll()
public void setTrustAll(boolean trustAll)
trustAll - True if all certificates should be trusted if there is no KeyStore or TrustStorepublic void setTrustManagerFactoryAlgorithm(String algorithm)
algorithm - The algorithm name (default "SunX509") used by the TrustManagerFactory
Use the string "TrustAll" to install a trust manager that trusts all.public String getCrlPath()
public void setCrlPath(String crlPath)
crlPath - Path to file that contains Certificate Revocation Listpublic int getMaxCertPathLength()
public void setMaxCertPathLength(int maxCertPathLength)
maxCertPathLength - maximum number of intermediate certificates in
the certification path (-1 for unlimited)public boolean isEnableCRLDP()
public void setEnableCRLDP(boolean enableCRLDP)
enableCRLDP - true - turn on, false - turns offpublic boolean isEnableOCSP()
public void setEnableOCSP(boolean enableOCSP)
enableOCSP - true - turn on, false - turn offpublic String getOcspResponderURL()
public void setOcspResponderURL(String ocspResponderURL)
ocspResponderURL - location of the OCSP Responderpublic boolean isSessionCachingEnabled()
public void setSessionCachingEnabled(boolean enableSessionCaching)
enableSessionCaching - the value of the flagpublic int getSslSessionCacheSize()
public void setSslSessionCacheSize(int sslSessionCacheSize)
sslSessionCacheSize - SSL session cache size to setpublic int getSslSessionTimeout()
public void setSslSessionTimeout(int sslSessionTimeout)
sslSessionTimeout - SSL session timeout to setCopyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.