public class OpenSSLFactory extends QServerSocket implements SSLFactory
| Constructor and Description |
|---|
OpenSSLFactory()
Creates a ServerSocket factory without initializing it.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(QSocket socket) |
QServerSocket |
bind(QServerSocket ss)
Creates the server socket.
|
void |
close() |
QServerSocket |
create(java.net.InetAddress addr,
int port)
Creates the server socket.
|
QSocket |
createSocket() |
java.lang.String |
getCACertificateFile()
Returns the caCertificateFile.
|
java.lang.String |
getCACertificatePath()
Returns the caCertificatePath.
|
java.lang.String |
getCARevocationFile()
Returns the caRevocationFile.
|
java.lang.String |
getCARevocationPath()
Returns the caRevocationPath.
|
java.lang.String |
getCertificateChainFile()
Returns the certificateChainFile
|
java.lang.String |
getCertificateFile()
Returns the certificate file.
|
java.lang.String |
getCertificateKeyFile()
Returns the key file.
|
java.lang.String |
getCipherSuite()
Returns the cipher suite
|
boolean |
getCompression() |
java.lang.String |
getCryptoDevice()
Returns the crypto-device
|
java.net.InetAddress |
getLocalAddress() |
int |
getLocalPort() |
java.lang.String |
getPassword()
Returns the key file.
|
boolean |
getUncleanShutdown()
Returns the unclean shutdown
|
java.lang.String |
getVerifyClient()
Returns the verify client
|
void |
init()
Initialize
|
void |
initConfig() |
boolean |
isHonorCipherOrder()
Returns the cipher suite
|
boolean |
isJni() |
boolean |
isTcpNoDelay() |
void |
listen(int backlog)
Sets the socket's listen backlog.
|
void |
setCACertificateFile(Path caCertificateFile)
Sets the caCertificateFile.
|
void |
setCACertificatePath(Path caCertificatePath)
Sets the caCertificatePath.
|
void |
setCARevocationFile(Path caRevocationFile)
Sets the caRevocationFile.
|
void |
setCARevocationPath(Path caRevocationPath)
Sets the caRevocationPath.
|
void |
setCertificateChainFile(Path certificateChainFile)
Sets the certificateChainFile.
|
void |
setCertificateFile(Path certificateFile)
Sets the certificate file.
|
void |
setCertificateKeyFile(Path keyFile)
Sets the key file.
|
void |
setCipherSuite(java.lang.String cipherSuite)
Sets the cipher-suite
|
void |
setCompression(boolean isCompression) |
void |
setConnectionSocketTimeout(int ms)
Sets the socket timeout for connections.
|
void |
setCryptoDevice(java.lang.String cryptoDevice)
Sets the crypto-device
|
void |
setHonorCipherOrder(boolean isEnable)
Sets the honor-cipher-order
|
void |
setPassword(java.lang.String password)
Sets the password.
|
void |
setProtocol(java.lang.String protocol)
Sets the protocol: +SSLv3
|
void |
setSessionCache(boolean enable)
Enable the session cache
|
void |
setSessionCacheTimeout(Period period)
Sets the session cache timeout
|
void |
setTcpNoDelay(boolean delay) |
void |
setUncleanShutdown(boolean uncleanShutdown)
Sets the unclean-shutdown
|
void |
setVerifyClient(java.lang.String verifyClient)
Sets the verifyClient.
|
void |
setVerifyDepth(int verifyDepth)
Sets the verify depth
|
java.lang.String |
toString() |
getSelector, getSystemFD, isClosed, isTcpCork, isTcpKeepalive, setSaveOnExec, setTcpCork, setTcpKeepalivepublic OpenSSLFactory()
public void setCertificateFile(Path certificateFile)
public java.lang.String getCertificateFile()
public void setCertificateKeyFile(Path keyFile)
public java.lang.String getCertificateKeyFile()
public void setCertificateChainFile(Path certificateChainFile)
public java.lang.String getCertificateChainFile()
public void setCACertificatePath(Path caCertificatePath)
public java.lang.String getCACertificatePath()
public void setCACertificateFile(Path caCertificateFile)
public java.lang.String getCACertificateFile()
public void setCARevocationPath(Path caRevocationPath)
public java.lang.String getCARevocationPath()
public void setCARevocationFile(Path caRevocationFile)
public java.lang.String getCARevocationFile()
public void setCipherSuite(java.lang.String cipherSuite)
public java.lang.String getCipherSuite()
public void setCompression(boolean isCompression)
public boolean getCompression()
public void setHonorCipherOrder(boolean isEnable)
public boolean isHonorCipherOrder()
public void setCryptoDevice(java.lang.String cryptoDevice)
public java.lang.String getCryptoDevice()
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public void setVerifyClient(java.lang.String verifyClient)
throws ConfigException
ConfigExceptionpublic java.lang.String getVerifyClient()
public void setVerifyDepth(int verifyDepth)
public void setUncleanShutdown(boolean uncleanShutdown)
public boolean getUncleanShutdown()
public void setSessionCache(boolean enable)
public void setSessionCacheTimeout(Period period)
public void setProtocol(java.lang.String protocol)
throws ConfigException
ConfigExceptionpublic boolean isJni()
isJni in class QServerSocket@PostConstruct public void init() throws ConfigException
ConfigExceptionpublic QServerSocket create(java.net.InetAddress addr, int port) throws ConfigException, java.io.IOException
create in interface SSLFactoryConfigExceptionjava.io.IOExceptionpublic QServerSocket bind(QServerSocket ss) throws ConfigException, java.io.IOException
bind in interface SSLFactoryConfigExceptionjava.io.IOExceptionpublic void setTcpNoDelay(boolean delay)
setTcpNoDelay in class QServerSocketpublic boolean isTcpNoDelay()
isTcpNoDelay in class QServerSocketpublic void setConnectionSocketTimeout(int ms)
setConnectionSocketTimeout in class QServerSocketpublic void listen(int backlog)
listen in class QServerSocketpublic boolean accept(QSocket socket) throws java.io.IOException
accept in class QServerSocketjava.io.IOExceptionpublic QSocket createSocket() throws java.io.IOException
createSocket in class QServerSocketjava.io.IOExceptionpublic java.net.InetAddress getLocalAddress()
getLocalAddress in class QServerSocketpublic int getLocalPort()
getLocalPort in class QServerSocketpublic void close()
throws java.io.IOException
close in class QServerSocketjava.io.IOExceptionpublic void initConfig()
throws ConfigException
ConfigExceptionpublic java.lang.String toString()
toString in class QServerSocket