public class SSLSocketJaffreClient extends AbstractSocketJaffreClient
AbstractSocketJaffreClient.InvocationHandlerImpl<T>
Constructor and Description |
---|
SSLSocketJaffreClient() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Free all resources that are no longer needed by this client.
|
protected void |
finalize() |
String |
getKeyManagerFactoryAlgorithm()
Get the
KeyManagerFactory algorithm. |
String |
getKeyStore()
Get the key store path.
|
String |
getKeyStoreType()
Get the key store type.
|
String |
getProtocol() |
String |
getTrustManagerFactoryAlgorithm()
Get the
TrustManagerFactory algorithm. |
String |
getTrustStore()
Get the trust store path.
|
String |
getTrustStoreType()
Get the trust store type.
|
protected Object |
invokeImpl(Class<?> p_interface,
Object p_proxy,
Method p_method,
Object[] p_args)
This method actually performs the remote call.
|
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 |
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.
|
getCallFrameSerializer, getProxy, getReturnFrameSerializer, getServiceInetAddress, getServicePort, isAcceptCookies, isKeepAlive, isSendCookies, setAcceptCookies, setCallFrameSerializer, setKeepAlive, setReturnFrameSerializer, setSendCookies, setServiceAddress, setServiceInetAddress, setServicePort
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 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 dispose()
Note: subsequent method invocations on client interfaces will acquire new resources, so this method has to be called again.
dispose
in interface JaffreClient
dispose
in class AbstractSocketJaffreClient
protected Object invokeImpl(Class<?> p_interface, Object p_proxy, Method p_method, Object[] p_args) throws Throwable
AbstractSocketJaffreClient
invokeImpl
in class AbstractSocketJaffreClient
Throwable
- If an error occurred.Copyright © 2009-2013 Alexander Veit. All Rights Reserved.