public class SslConfigurationFactory extends Object
Constructor and Description |
---|
SslConfigurationFactory() |
Modifier and Type | Method and Description |
---|---|
SslConfiguration |
createSslConfiguration()
Create an instance of
SslConfiguration based on the configuration
of this factory. |
ClientAuth |
getClientAuth()
Return the required client authentication setting
|
String[] |
getEnabledCipherSuites()
Returns the cipher suites that should be enabled for this connection.
|
String |
getKeyAlias()
Get the server key alias to be used for SSL communication
|
String |
getKeyPassword()
The password used to load the key
|
String |
getKeystoreAlgorithm()
The algorithm used to open the key store.
|
File |
getKeystoreFile()
The key store file used by this configuration
|
String |
getKeystorePassword()
The password used to load the key store
|
String |
getKeystoreType()
The key store type, defaults to @see
KeyStore.getDefaultType() |
String |
getSslProtocol()
The SSL protocol used for this channel.
|
String |
getTruststoreAlgorithm()
The algorithm used to open the trust store.
|
File |
getTruststoreFile()
Get the file used to load the truststore
|
String |
getTruststorePassword()
The password used to load the trust store
|
String |
getTruststoreType()
The trust store type, defaults to @see
KeyStore.getDefaultType() |
void |
setClientAuthentication(String clientAuthReqd)
Set what client authentication level to use, supported values are "yes"
or "true" for required authentication, "want" for wanted authentication
and "false" or "none" for no authentication.
|
void |
setEnabledCipherSuites(String[] enabledCipherSuites)
Set the allowed cipher suites, note that the exact list of supported
cipher suites differs between JRE implementations.
|
void |
setKeyAlias(String keyAlias)
Set the alias for the key to be used for SSL communication.
|
void |
setKeyPassword(String keyPass)
Set the password used to load the key
|
void |
setKeystoreAlgorithm(String keystoreAlgorithm)
Override the key store algorithm used to open the key store
|
void |
setKeystoreFile(File keyStoreFile)
Set the key store file to be used by this configuration
|
void |
setKeystorePassword(String keystorePass)
Set the password used to load the key store
|
void |
setKeystoreType(String keystoreType)
Set the key store type
|
void |
setSslProtocol(String sslProtocol)
Set the SSL protocol used for this channel.
|
void |
setTruststoreAlgorithm(String trustStoreAlgorithm)
Override the trust store algorithm used to open the trust store
|
void |
setTruststoreFile(File trustStoreFile)
Set the password used to load the trust store
|
void |
setTruststorePassword(String trustStorePass)
Set the password used to load the trust store
|
void |
setTruststoreType(String trustStoreType)
Set the trust store type
|
public File getKeystoreFile()
public void setKeystoreFile(File keyStoreFile)
keyStoreFile
- A path to an existing key store filepublic String getKeystorePassword()
public void setKeystorePassword(String keystorePass)
keystorePass
- The passwordpublic String getKeystoreType()
KeyStore.getDefaultType()
public void setKeystoreType(String keystoreType)
keystoreType
- The key store typepublic String getKeystoreAlgorithm()
public void setKeystoreAlgorithm(String keystoreAlgorithm)
keystoreAlgorithm
- The key store algorithmpublic String getSslProtocol()
public void setSslProtocol(String sslProtocol)
sslProtocol
- The SSL protocolpublic void setClientAuthentication(String clientAuthReqd)
clientAuthReqd
- The desired authentication levelpublic String getKeyPassword()
public void setKeyPassword(String keyPass)
keyPass
- The passwordpublic File getTruststoreFile()
File
containing the truststorepublic void setTruststoreFile(File trustStoreFile)
trustStoreFile
- The passwordpublic String getTruststorePassword()
public void setTruststorePassword(String trustStorePass)
trustStorePass
- The passwordpublic String getTruststoreType()
KeyStore.getDefaultType()
public void setTruststoreType(String trustStoreType)
trustStoreType
- The trust store typepublic String getTruststoreAlgorithm()
public void setTruststoreAlgorithm(String trustStoreAlgorithm)
trustStoreAlgorithm
- The trust store algorithmpublic SslConfiguration createSslConfiguration()
SslConfiguration
based on the configuration
of this factory.SslConfiguration
instancepublic ClientAuth getClientAuth()
ClientAuth.NEED
if client authentication is required,
ClientAuth.WANT
is client authentication is wanted or
ClientAuth.NONE
if no client authentication is the be
performedpublic String[] getEnabledCipherSuites()
public void setEnabledCipherSuites(String[] enabledCipherSuites)
enabledCipherSuites
- public String getKeyAlias()
public void setKeyAlias(String keyAlias)
keyAlias
- The alias to use, or null if JSSE should be allowed to choose
the key.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.