com.gridsystems.innergrid.api
Class InnergridJSSESocketFactory
java.lang.Object
org.apache.axis.components.net.DefaultSocketFactory
org.apache.axis.components.net.JSSESocketFactory
org.apache.axis.components.net.SunJSSESocketFactory
org.apache.axis.components.net.SunFakeTrustSocketFactory
com.gridsystems.innergrid.api.InnergridJSSESocketFactory
- All Implemented Interfaces:
- org.apache.axis.components.net.SecureSocketFactory, org.apache.axis.components.net.SocketFactory
public class InnergridJSSESocketFactory
- extends org.apache.axis.components.net.SunFakeTrustSocketFactory
SSL Socket factory to be used by Innergrid APIs.
- Version:
- 1.0
- Author:
- Xmas
Nested classes/interfaces inherited from class org.apache.axis.components.net.SunFakeTrustSocketFactory |
org.apache.axis.components.net.SunFakeTrustSocketFactory.FakeX509TrustManager |
Fields inherited from class org.apache.axis.components.net.SunFakeTrustSocketFactory |
log |
Fields inherited from class org.apache.axis.components.net.JSSESocketFactory |
sslFactory |
Fields inherited from class org.apache.axis.components.net.DefaultSocketFactory |
attributes, CONNECT_TIMEOUT |
Method Summary |
java.net.Socket |
create(java.lang.String host,
int port,
java.lang.StringBuffer otherHeaders,
org.apache.axis.components.net.BooleanHolder useFullURL)
Creates a secure socket. |
protected void |
initFactory()
Read the keystore, init the SSL socket factory. |
static void |
registrySSLConnectionInfo(java.lang.String host,
int port,
SSLConnectionInfo sslinfo)
Registry a SSLConnection info with host:port. |
Methods inherited from class org.apache.axis.components.net.SunFakeTrustSocketFactory |
getContext |
Methods inherited from class org.apache.axis.components.net.DefaultSocketFactory |
isHostInNonProxyList, match |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InnergridJSSESocketFactory
public InnergridJSSESocketFactory(java.util.Hashtable attrib)
- Constructor.
- Parameters:
attrib
- Attributes for this factory
registrySSLConnectionInfo
public static void registrySSLConnectionInfo(java.lang.String host,
int port,
SSLConnectionInfo sslinfo)
- Registry a SSLConnection info with host:port.
- Parameters:
host
- Host to connectport
- Port of host to connectsslinfo
- Information to establish SSL connection
initFactory
protected void initFactory()
- Read the keystore, init the SSL socket factory.
- Overrides:
initFactory
in class org.apache.axis.components.net.SunJSSESocketFactory
create
public java.net.Socket create(java.lang.String host,
int port,
java.lang.StringBuffer otherHeaders,
org.apache.axis.components.net.BooleanHolder useFullURL)
throws java.lang.Exception
- Creates a secure socket.
- Specified by:
create
in interface org.apache.axis.components.net.SocketFactory
- Overrides:
create
in class org.apache.axis.components.net.JSSESocketFactory
- Parameters:
host
- Host to connectport
- Port of host to connectotherHeaders
- More infouseFullURL
- Use full URL
- Returns:
- Socket Socket to realize the connection
- Throws:
java.lang.Exception
- If error
Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.