org.jboss.axis.components.net
Class JSSE14SocketFactory

java.lang.Object
  extended by org.jboss.axis.components.net.DefaultSocketFactory
      extended by org.jboss.axis.components.net.JSSESocketFactory
          extended by org.jboss.axis.components.net.JSSE14SocketFactory
All Implemented Interfaces:
SecureSocketFactory, SocketFactory

public class JSSE14SocketFactory
extends JSSESocketFactory
implements SecureSocketFactory

SSL server socket factory. It _requires_ a valid RSA key and JSSE. This is derived from the tomcat source.

Author:
Harish Prabandham, Costin Manolache, Stefan Freyr Stefansson, EKR -- renamed to JSSESocketFactory, Jan Luehe, Jason T. Greene

Nested Class Summary
static class JSSE14SocketFactory.JSSEKeyManager
           
 
Field Summary
 
Fields inherited from class org.jboss.axis.components.net.JSSESocketFactory
sslFactory
 
Fields inherited from class org.jboss.axis.components.net.DefaultSocketFactory
options
 
Constructor Summary
JSSE14SocketFactory(HashMap options)
          Constructor JSSESocketFactory
 
Method Summary
protected  KeyManager[] getKeyManagers(String type, String algorithm, String keyAlias)
          Gets the initialized key managers.
protected  KeyStore getKeyStore(String type, String pass)
           
protected  String getKeyStorePassword()
           
protected  String getKeyStoreType()
           
protected  TrustManager[] getTrustManagers(String algorithm, String type)
          Gets the intialized trust managers.
protected  KeyStore getTrustStore(String type, String pass)
           
protected  String getTrustStorePassword()
           
protected  String getTrustStoreType()
           
protected  void initFactory()
          Reads the keyStore and initializes the SSL socket factory.
 
Methods inherited from class org.jboss.axis.components.net.JSSESocketFactory
create
 
Methods inherited from class org.jboss.axis.components.net.DefaultSocketFactory
isHostInNonProxyList, match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.axis.components.net.SocketFactory
create
 

Constructor Detail

JSSE14SocketFactory

public JSSE14SocketFactory(HashMap options)
Constructor JSSESocketFactory

Parameters:
options -
Method Detail

getKeyStoreType

protected String getKeyStoreType()

getTrustStorePassword

protected String getTrustStorePassword()

getTrustStoreType

protected String getTrustStoreType()

initFactory

protected void initFactory()
                    throws IOException
Reads the keyStore and initializes the SSL socket factory.

Overrides:
initFactory in class JSSESocketFactory
Throws:
IOException

getKeyManagers

protected KeyManager[] getKeyManagers(String type,
                                      String algorithm,
                                      String keyAlias)
                               throws Exception
Gets the initialized key managers.

Throws:
Exception

getKeyStorePassword

protected String getKeyStorePassword()

getKeyStore

protected KeyStore getKeyStore(String type,
                               String pass)
                        throws IOException
Throws:
IOException

getTrustManagers

protected TrustManager[] getTrustManagers(String algorithm,
                                          String type)
                                   throws Exception
Gets the intialized trust managers.

Throws:
Exception

getTrustStore

protected KeyStore getTrustStore(String type,
                                 String pass)
                          throws IOException
Throws:
IOException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.