org.apache.axis.components.net

Class JSSESocketFactory

Implemented Interfaces:
SecureSocketFactory, SocketFactory
Known Direct Subclasses:
IBMJSSESocketFactory, SunJSSESocketFactory

public class JSSESocketFactory
extends DefaultSocketFactory
implements SecureSocketFactory

SSL socket factory. It _requires_ a valid RSA key and JSSE. (borrowed code from tomcat) THIS CODE STILL HAS DEPENDENCIES ON sun.* and com.sun.*
Author:
Davanum Srinivas (dims@yahoo.com)

Field Summary

protected SSLSocketFactory
sslFactory
Field sslFactory

Fields inherited from class org.apache.axis.components.net.DefaultSocketFactory

CONNECT_TIMEOUT, attributes, log

Constructor Summary

JSSESocketFactory(Hashtable attributes)
Constructor JSSESocketFactory

Method Summary

Socket
create(String host, int port, StringBuffer otherHeaders, BooleanHolder useFullURL)
creates a secure socket
protected void
initFactory()
Initialize the SSLSocketFactory

Methods inherited from class org.apache.axis.components.net.DefaultSocketFactory

create, isHostInNonProxyList, match

Field Details

sslFactory

protected SSLSocketFactory sslFactory
Field sslFactory

Constructor Details

JSSESocketFactory

public JSSESocketFactory(Hashtable attributes)
Constructor JSSESocketFactory
Parameters:
attributes -

Method Details

create

public Socket create(String host,
                     int port,
                     StringBuffer otherHeaders,
                     BooleanHolder useFullURL)
            throws Exception
creates a secure socket
Specified by:
create in interface SocketFactory
Overrides:
create in interface DefaultSocketFactory
Parameters:
host -
port -
otherHeaders -
useFullURL -
Returns:
Socket

initFactory

protected void initFactory()
            throws IOException
Initialize the SSLSocketFactory

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.