Package org.apache.axis.components.net
Class JSSESocketFactory
- java.lang.Object
-
- org.apache.axis.components.net.DefaultSocketFactory
-
- org.apache.axis.components.net.JSSESocketFactory
-
- All Implemented Interfaces:
SecureSocketFactory,SocketFactory
- Direct Known 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
Fields Modifier and Type Field Description protected javax.net.ssl.SSLSocketFactorysslFactoryField sslFactory-
Fields inherited from class org.apache.axis.components.net.DefaultSocketFactory
attributes, CONNECT_TIMEOUT, log
-
-
Constructor Summary
Constructors Constructor Description JSSESocketFactory(java.util.Hashtable attributes)Constructor JSSESocketFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.Socketcreate(java.lang.String host, int port, java.lang.StringBuffer otherHeaders, BooleanHolder useFullURL)creates a secure socketprotected voidinitFactory()Initialize the SSLSocketFactory-
Methods inherited from class org.apache.axis.components.net.DefaultSocketFactory
isHostInNonProxyList, match
-
-
-
-
Method Detail
-
initFactory
protected void initFactory() throws java.io.IOExceptionInitialize the SSLSocketFactory- Throws:
java.io.IOException
-
create
public java.net.Socket create(java.lang.String host, int port, java.lang.StringBuffer otherHeaders, BooleanHolder useFullURL) throws java.lang.Exceptioncreates a secure socket- Specified by:
createin interfaceSocketFactory- Overrides:
createin classDefaultSocketFactory- Parameters:
host-port-otherHeaders-useFullURL-- Returns:
- Socket
- Throws:
java.lang.Exception
-
-