com.gridsystems.innergrid.api
Class InnergridJSSESocketFactory

java.lang.Object
  extended by org.apache.axis.components.net.DefaultSocketFactory
      extended by org.apache.axis.components.net.JSSESocketFactory
          extended by org.apache.axis.components.net.SunJSSESocketFactory
              extended by org.apache.axis.components.net.SunFakeTrustSocketFactory
                  extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.apache.axis.components.net.SunFakeTrustSocketFactory
org.apache.axis.components.net.SunFakeTrustSocketFactory.FakeX509TrustManager
 
Field Summary
 
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
 
Constructor Summary
InnergridJSSESocketFactory(java.util.Hashtable attrib)
          Constructor.
 
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
 

Constructor Detail

InnergridJSSESocketFactory

public InnergridJSSESocketFactory(java.util.Hashtable attrib)
Constructor.

Parameters:
attrib - Attributes for this factory
Method Detail

registrySSLConnectionInfo

public static void registrySSLConnectionInfo(java.lang.String host,
                                             int port,
                                             SSLConnectionInfo sslinfo)
Registry a SSLConnection info with host:port.

Parameters:
host - Host to connect
port - Port of host to connect
sslinfo - 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 connect
port - Port of host to connect
otherHeaders - More info
useFullURL - 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.