public class CoyoteServerSocketFactory extends Object implements ServerSocketFactory
setAttribute()
. The following attribute
names are recognized, with default values in square brackets:
true
. [false]Constructor and Description |
---|
CoyoteServerSocketFactory() |
Modifier and Type | Method and Description |
---|---|
ServerSocket |
createSocket(int port)
Returns a server socket which uses all network interfaces on
the host, and is bound to a the specified port.
|
ServerSocket |
createSocket(int port,
int backlog)
Returns a server socket which uses all network interfaces on
the host, is bound to a the specified port, and uses the
specified connection backlog.
|
ServerSocket |
createSocket(int port,
int backlog,
InetAddress ifAddress)
Returns a server socket which uses only the specified network
interface on the local host, is bound to a the specified port,
and uses the specified connection backlog.
|
String |
getAlgorithm()
Gets the certificate encoding algorithm to be used.
|
String |
getCiphers()
Gets the list of SSL cipher suites that are to be enabled
|
boolean |
getClientAuth()
Provides information about whether client authentication is enforced.
|
String |
getKeyAlias()
Gets the alias name of the keypair and supporting certificate chain
used by the server to authenticate itself to SSL clients.
|
String |
getKeystoreFile()
Gets the pathname to the keystore file.
|
String |
getKeystorePass()
Gets the keystore password.
|
String |
getKeystoreType()
Gets the keystore type.
|
String |
getProtocol()
Gets the SSL protocol variant to be used.
|
String |
getProtocols()
Gets the SSL protocol variants to be enabled.
|
String |
getRandomFile()
Gets the pathname to the random file.
|
String |
getRootFile()
Gets the pathname to the root list.
|
String |
getSSLImplementation()
Gets the name of the SSL implementation to be used.
|
void |
setAlgorithm(String algorithm)
Sets the certificate encoding algorithm to be used.
|
void |
setCiphers(String ciphers)
Sets the SSL cipher suites that are to be enabled.
|
void |
setClientAuth(boolean clientAuth)
Sets the requirement of client authentication.
|
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.
|
void |
setKeystoreFile(String keystoreFile)
Sets the pathname to the keystore file.
|
void |
setKeystorePass(String keystorePass)
Sets the keystore password.
|
void |
setKeystoreType(String keystoreType)
Sets the keystore type.
|
void |
setProtocol(String protocol)
Sets the SSL protocol variant to be used.
|
void |
setProtocols(String protocols)
Sets the SSL protocol variants to be enabled.
|
void |
setRandomFile(String randomFile)
Sets the pathname to the random file.
|
void |
setRootFile(String rootFile)
Sets the pathname to the root list.
|
void |
setSSLImplementation(String sslImplementation)
Sets the name of the SSL implementation to be used.
|
public String getAlgorithm()
public void setAlgorithm(String algorithm)
algorithm
- Certificate encoding algorithmpublic boolean getClientAuth()
public void setClientAuth(boolean clientAuth)
clientAuth
- true if client authentication is enforced, false
otherwisepublic String getKeystoreFile()
public void setKeystoreFile(String keystoreFile)
keystoreFile
- Pathname to the keystore filepublic String getRandomFile()
public void setRandomFile(String randomFile)
randomFile
- Pathname to the random filepublic String getRootFile()
public void setRootFile(String rootFile)
rootFile
- Pathname to the root listpublic String getKeystorePass()
public void setKeystorePass(String keystorePass)
keystorePass
- Keystore passwordpublic String getKeystoreType()
public void setKeystoreType(String keystoreType)
keystoreType
- Keystore typepublic String getProtocol()
public void setProtocol(String protocol)
protocol
- SSL protocol variantpublic String getProtocols()
public void setProtocols(String protocols)
protocols
- Comma-separated list of SSL protocol variantspublic String getSSLImplementation()
public void setSSLImplementation(String sslImplementation)
sslImplementation
- SSL implementation namepublic String getKeyAlias()
public void setKeyAlias(String alias)
alias
- The alias name of the keypair and supporting certificate
chainpublic String getCiphers()
public void setCiphers(String ciphers)
ciphers
- Comma-separated list of SSL cipher suitespublic ServerSocket createSocket(int port)
ServerSocketFactory
createSocket
in interface ServerSocketFactory
port
- the port to listen topublic ServerSocket createSocket(int port, int backlog)
ServerSocketFactory
createSocket
in interface ServerSocketFactory
port
- the port to listen tobacklog
- how many connections are queuedpublic ServerSocket createSocket(int port, int backlog, InetAddress ifAddress)
ServerSocketFactory
createSocket
in interface ServerSocketFactory
port
- the port to listen tobacklog
- how many connections are queuedifAddress
- the network interface address to useCopyright © 2021. All rights reserved.