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
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
FieldsFields inherited from class org.apache.axis.components.net.DefaultSocketFactory
attributes, CONNECT_TIMEOUT, log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String host, int port, StringBuffer otherHeaders, BooleanHolder useFullURL) creates a secure socketprotected void
Initialize the SSLSocketFactoryMethods inherited from class org.apache.axis.components.net.DefaultSocketFactory
isHostInNonProxyList, match
-
Field Details
-
sslFactory
Field sslFactory
-
-
Constructor Details
-
JSSESocketFactory
Constructor JSSESocketFactory- Parameters:
attributes
-
-
-
Method Details
-
initFactory
Initialize the SSLSocketFactory- Throws:
IOException
-
create
public Socket create(String host, int port, StringBuffer otherHeaders, BooleanHolder useFullURL) throws Exception creates a secure socket- Specified by:
create
in interfaceSocketFactory
- Overrides:
create
in classDefaultSocketFactory
- Parameters:
host
-port
-otherHeaders
-useFullURL
-- Returns:
- Socket
- Throws:
Exception
-