public class JsseSSLFactory extends java.lang.Object implements SSLFactory
Constructor and Description |
---|
JsseSSLFactory()
Creates a ServerSocket factory without initializing it.
|
Modifier and Type | Method and Description |
---|---|
QServerSocket |
bind(QServerSocket ss)
Creates the SSL ServerSocket.
|
QServerSocket |
create(java.net.InetAddress host,
int port)
Creates the SSL ServerSocket.
|
java.lang.String |
getAlias()
Returns the alias.
|
java.lang.Boolean |
getHonorCipherOrder() |
Path |
getKeyStoreFile()
Returns the certificate file.
|
java.lang.String |
getPassword()
Returns the key file.
|
java.lang.String |
getVerifyClient()
Returns the key file.
|
void |
init()
Initialize
|
void |
setAlias(java.lang.String alias)
Sets the certificate alias
|
void |
setCipherSuites(java.lang.String[] ciphers)
Sets the enabled cipher suites
|
void |
setCipherSuitesForbidden(java.lang.String[] ciphers)
Sets the enabled cipher suites
|
void |
setHonorCipherOrder(java.lang.Boolean isHonorCipherOrder) |
void |
setKeyManagerFactory(java.lang.String keyManagerFactory)
Sets the key-manager-factory
|
void |
setKeyStoreFile(Path keyStoreFile)
Sets the key store
|
void |
setKeyStoreType(java.lang.String keyStore)
Sets the key-store
|
void |
setPassword(java.lang.String password)
Sets the password.
|
void |
setProtocol(java.lang.String protocol)
Sets the protocol
|
void |
setSelfSignedCertificateName(java.lang.String name)
Sets the self-signed certificate name
|
void |
setSSLContext(java.lang.String sslContext)
Sets the ssl-context
|
void |
setVerifyClient(java.lang.String verifyClient)
Sets the verifyClient.
|
public JsseSSLFactory()
public void setCipherSuites(java.lang.String[] ciphers)
public void setCipherSuitesForbidden(java.lang.String[] ciphers)
public void setKeyStoreFile(Path keyStoreFile)
public Path getKeyStoreFile()
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public void setAlias(java.lang.String alias)
public java.lang.String getAlias()
public void setVerifyClient(java.lang.String verifyClient)
public java.lang.String getVerifyClient()
public void setKeyManagerFactory(java.lang.String keyManagerFactory)
public void setSelfSignedCertificateName(java.lang.String name)
public void setSSLContext(java.lang.String sslContext)
public void setKeyStoreType(java.lang.String keyStore)
public void setProtocol(java.lang.String protocol)
public java.lang.Boolean getHonorCipherOrder()
public void setHonorCipherOrder(java.lang.Boolean isHonorCipherOrder)
@PostConstruct public void init() throws ConfigException, java.io.IOException, java.security.GeneralSecurityException
ConfigException
java.io.IOException
java.security.GeneralSecurityException
public QServerSocket create(java.net.InetAddress host, int port) throws java.io.IOException, java.security.GeneralSecurityException
create
in interface SSLFactory
java.io.IOException
java.security.GeneralSecurityException
public QServerSocket bind(QServerSocket ss) throws ConfigException, java.io.IOException, java.security.GeneralSecurityException
bind
in interface SSLFactory
ConfigException
java.io.IOException
java.security.GeneralSecurityException