org.jboss.axis.components.net
Class JSSESocketFactory
java.lang.Object
org.jboss.axis.components.net.DefaultSocketFactory (src)
org.jboss.axis.components.net.JSSESocketFactory
- All Implemented Interfaces:
- SecureSocketFactory (src) , SocketFactory (src)
- Direct Known Subclasses:
- SunJSSESocketFactory (src)
- public class JSSESocketFactory
- extends DefaultSocketFactory (src)
- implements SecureSocketFactory (src)
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.*
Field Summary |
protected javax.net.ssl.SSLSocketFactory |
sslFactory
Field sslFactory |
Constructor Summary |
JSSESocketFactory(java.util.Hashtable attributes)
Constructor JSSESocketFactory |
Method Summary |
java.net.Socket |
create(java.lang.String host,
int port,
java.lang.StringBuffer otherHeaders,
BooleanHolder (src) useFullURL)
creates a secure socket |
protected void |
initFactory()
Initialize the SSLSocketFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sslFactory
protected javax.net.ssl.SSLSocketFactory sslFactory
- Field sslFactory
JSSESocketFactory
public JSSESocketFactory(java.util.Hashtable attributes)
- Constructor JSSESocketFactory
- Parameters:
attributes
-
initFactory
protected void initFactory()
throws java.io.IOException
- Initialize the SSLSocketFactory
- Throws:
java.io.IOException
create
public java.net.Socket create(java.lang.String host,
int port,
java.lang.StringBuffer otherHeaders,
BooleanHolder (src) useFullURL)
throws java.lang.Exception
- creates a secure socket
- Specified by:
create
in interface SocketFactory (src)
- Overrides:
create
in class DefaultSocketFactory (src)
- Parameters:
host
- port
- otherHeaders
- useFullURL
-
- Returns:
- Socket
- Throws:
java.lang.Exception