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 |
setKeyManagerAlgorithm(java.lang.String keyManagerAlgorithm)
Sets the KeyManagerFactory algorithm
|
void |
setKeyManagerFactory(java.lang.String keyManagerFactory)
Sets the key-manager-factory
|
void |
setKeyManagerProvider(java.lang.String keyManagerProvider)
Sets the KeyManagerFactory provider
|
void |
setKeyStoreFile(Path keyStoreFile)
Sets the key store
|
void |
setKeyStoreInstance(java.security.KeyStore keyStore)
Sets the key store instance
|
void |
setKeyStorePassword(java.lang.String password)
Sets the KeyStore password
|
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 |
setTrustStoreAlgorithm(java.lang.String value)
Sets the TrustStore type
|
void |
setTrustStoreFile(Path trustStoreFile)
Sets the TrustStore store
|
void |
setTrustStoreInstance(java.security.KeyStore trustStore)
Sets the trust store instance
|
void |
setTrustStorePassword(java.lang.String value)
Sets the TrustStore password
|
void |
setTrustStoreProvider(java.lang.String value)
Sets the TrustStore provider
|
void |
setTrustStoreType(java.lang.String value)
Sets the TrustStore type
|
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 setKeyManagerAlgorithm(java.lang.String keyManagerAlgorithm)
public void setKeyManagerProvider(java.lang.String keyManagerProvider)
public void setSelfSignedCertificateName(java.lang.String name)
public void setSSLContext(java.lang.String sslContext)
public void setKeyStoreType(java.lang.String keyStore)
public void setKeyStorePassword(java.lang.String password)
public void setTrustStoreAlgorithm(java.lang.String value)
public void setTrustStoreProvider(java.lang.String value)
public void setTrustStorePassword(java.lang.String value)
public void setTrustStoreType(java.lang.String value)
public void setTrustStoreFile(Path trustStoreFile)
public void setProtocol(java.lang.String protocol)
public java.lang.Boolean getHonorCipherOrder()
public void setHonorCipherOrder(java.lang.Boolean isHonorCipherOrder)
public void setKeyStoreInstance(java.security.KeyStore keyStore)
public void setTrustStoreInstance(java.security.KeyStore trustStore)
@PostConstruct public void init() throws ConfigException, java.io.IOException, java.security.GeneralSecurityException
ConfigExceptionjava.io.IOExceptionjava.security.GeneralSecurityExceptionpublic QServerSocket create(java.net.InetAddress host, int port) throws java.io.IOException, java.security.GeneralSecurityException
create in interface SSLFactoryjava.io.IOExceptionjava.security.GeneralSecurityExceptionpublic QServerSocket bind(QServerSocket ss) throws ConfigException, java.io.IOException, java.security.GeneralSecurityException
bind in interface SSLFactoryConfigExceptionjava.io.IOExceptionjava.security.GeneralSecurityException