public class SSLSocketJaffreConnector extends AbstractSocketJaffreConnector
Constructor and Description |
---|
SSLSocketJaffreConnector() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canKeepAlive() |
String |
getKeyManagerFactoryAlgorithm()
Get the
KeyManagerFactory algorithm. |
String |
getKeyStore()
Get the key store path.
|
String |
getKeyStoreType()
Get the key store type.
|
int |
getNumRunningThreads()
Get the number of threads that are currently handling
connections.
|
String |
getProtocol() |
String |
getTrustManagerFactoryAlgorithm()
Get the
TrustManagerFactory algorithm. |
String |
getTrustStore()
Get the trust store path.
|
String |
getTrustStoreType()
Get the trust store type.
|
boolean |
isNeedClientAuth() |
boolean |
isRunning()
Check if the connector is ronning.
|
void |
setKeyManagerFactoryAlgorithm(String p_strKeyManagerFactoryAlgorithm)
Set the
KeyManagerFactory algorithm. |
void |
setKeyStore(String p_strKeyStore)
Set the trust store path.
|
void |
setKeyStorePassword(String p_strKeyStorePassword)
Set the key store password.
|
void |
setKeyStoreType(String p_strKeyStoreType)
Set the key store type.
|
void |
setNeedClientAuth(boolean p_bNeedClientAuth) |
void |
setProtocol(String p_strProtocol) |
void |
setSSLContext(SSLContext p_sslContext)
Set a
SSLContext to be used by this connector. |
void |
setTrustManagerFactoryAlgorithm(String p_strTrustManagerFactoryAlgorithm)
Set the
TrustManagerFactory algorithm. |
void |
setTrustStore(String p_strTrustStore)
Set the trust store path.
|
void |
setTrustStorePassword(String p_strTrustStorePassword)
Set the trust store password.
|
void |
setTrustStoreType(String p_strTrustStoreType)
Set the trust store type.
|
void |
start()
Start this connector.
|
void |
stop()
Stop this connector.
|
getBindingInetAddress, getCallFrameSerializer, getCoreThreadPoolSize, getMaxThreadPoolSize, getPort, getReturnFrameSerializer, getServer, getStopTimeout, setBindingAddress, setBindingInetAddress, setCallFrameSerializer, setCoreThreadPoolSize, setMaxThreadPoolSize, setPort, setReturnFrameSerializer, setServer, setStopTimeout
public int getNumRunningThreads()
public void setSSLContext(SSLContext p_sslContext)
SSLContext
to be used by this connector.
This property can be used to provide a more customized
SSLContext
than it is possible by using the
setKeyXxx
and setTrustXxx
properties.
p_sslContext
- public String getProtocol()
public void setProtocol(String p_strProtocol)
public boolean isNeedClientAuth()
public void setNeedClientAuth(boolean p_bNeedClientAuth)
public String getKeyStore()
Default is the value of the javax.net.ssl.keyStore
system property, if defined.
public void setKeyStore(String p_strKeyStore)
Default is the value of the javax.net.ssl.keyStore
system property, if defined.
p_strKeyStore
- The trust store path.public void setKeyStorePassword(String p_strKeyStorePassword)
Default is the value of the javax.net.ssl.keyStorePassword
system property, if defined.
p_strKeyStorePassword
- The key store password.public String getKeyStoreType()
Default is the value of the javax.net.ssl.keyStoreType
system property, if defined.
Otherwise java.security.KeyStore.getDefaultType()
is
used as default.
public void setKeyStoreType(String p_strKeyStoreType)
Default is the value of the javax.net.ssl.keyStoreType
system property, if defined.
Otherwise java.security.KeyStore.getDefaultType()
is
used as default.
p_strKeyStoreType
- The key store type.public String getKeyManagerFactoryAlgorithm()
KeyManagerFactory
algorithm.
Default is SunX509
.public void setKeyManagerFactoryAlgorithm(String p_strKeyManagerFactoryAlgorithm)
KeyManagerFactory
algorithm.
Default is SunX509
.p_strKeyManagerFactoryAlgorithm
- The algorithm.public String getTrustStore()
Default is the value of the javax.net.ssl.trustStore
system property, if defined.
public void setTrustStore(String p_strTrustStore)
Default is the value of the javax.net.ssl.trustStore
system property, if defined.
p_strTrustStore
- The trust store path.public void setTrustStorePassword(String p_strTrustStorePassword)
Default is the value of the javax.net.ssl.trustStorePassword
system property, if defined.
p_strTrustStorePassword
- The trust store password.public String getTrustStoreType()
Default is the value of the javax.net.ssl.trustStoreType
system property, if defined.
Otherwise java.security.KeyStore.getDefaultType()
is
used as default.
public void setTrustStoreType(String p_strTrustStoreType)
Default is the value of the javax.net.ssl.trustStoreType
system property, if defined.
Otherwise java.security.KeyStore.getDefaultType()
is
used as default.
p_strTrustStoreType
- The trust store type.public String getTrustManagerFactoryAlgorithm()
TrustManagerFactory
algorithm.
Default is SunX509
.public void setTrustManagerFactoryAlgorithm(String p_strTrustManagerFactoryAlgorithm)
TrustManagerFactory
algorithm.
Default is SunX509
.p_strTrustManagerFactoryAlgorithm
- The algorithm.public void start()
JaffreConnector
public boolean isRunning()
JaffreConnector
true
if the connector is running,
or false
otherwise.public void stop()
JaffreConnector
protected boolean canKeepAlive()
Copyright © 2009-2013 Alexander Veit. All Rights Reserved.