This socket factory holds secure socket factory parameters. Besides the usual
configuration mechanism based on setting JavaBeans properties, this
component may also be configured by passing a series of attributes set
with calls to setAttribute(). The following attribute
names are recognized, with default values in square brackets:
algorithm - Certificate encoding algorithm
to use. [SunX509]
clientAuth - Require client authentication if
set to true. [false]
keystoreFile - Pathname to the Key Store file to be
loaded. This must be an absolute path, or a relative path that
is resolved against the "catalina.base" system property.
["./keystore" in the user home directory]
keystorePass - Password for the Key Store file to be
loaded. ["changeit"]
keystoreType - Type of the Key Store file to be
loaded. ["JKS"]
setAlgorithm(String algorithm) Sets the certificate encoding algorithm to be used.
public void
setCiphers(String ciphers) Sets the SSL cipher suites that are to be enabled.
public void
setClientAuth(String clientAuth) Sets the requirement of client authentication.
public void
setKeyAlias(String alias) Sets the alias name of the keypair and supporting certificate chain
used by the server to authenticate itself to SSL clients.
Gets the list of SSL cipher suites that are to be enabled
Comma-separated list of SSL cipher suites, or null if allcipher suites supported by the underlying SSL implementation are beingenabled
Provides information about whether client authentication is enforced.
true if client authentication is enforced, want if client authentication is desired,false otherwise
Gets the alias name of the keypair and supporting certificate chain
used by the server to authenticate itself to SSL clients.
The alias name of the keypair and supporting certificate chain
Sets the SSL cipher suites that are to be enabled.
Only those SSL cipher suites that are actually supported by
the underlying SSL implementation will be enabled.
Parameters: ciphers - Comma-separated list of SSL cipher suites
setClientAuth
public void setClientAuth(String clientAuth)(Code)
Sets the requirement of client authentication.
Parameters: clientAuth - true if client authentication is enforced, want if client authentication is desired,falseotherwise
Sets the alias name of the keypair and supporting certificate chain
used by the server to authenticate itself to SSL clients.
Parameters: alias - The alias name of the keypair and supporting certificatechain
setKeystoreFile
public void setKeystoreFile(String keystoreFile)(Code)
Sets the pathname to the keystore file.
Parameters: keystoreFile - Pathname to the keystore file
setKeystorePass
public void setKeystorePass(String keystorePass)(Code)
Sets the keystore password.
Parameters: keystorePass - Keystore password
setKeystoreType
public void setKeystoreType(String keystoreType)(Code)
Sets the keystore type.
Parameters: keystoreType - Keystore type