org.jboss.remoting.util.socket
Class RemotingSSLSocketFactory

java.lang.Object
  extended byjavax.net.SocketFactory
      extended byjavax.net.ssl.SSLSocketFactory
          extended byorg.jboss.remoting.util.socket.RemotingSSLSocketFactory

public class RemotingSSLSocketFactory
extends javax.net.ssl.SSLSocketFactory

Author:
Tom Elrod

Field Summary
static java.lang.String DEFAULT_ALGORITHM
          Default algorithm if one net set as bean property or via config.
static java.lang.String DEFAULT_KEY_STORE_TYPE
          Default key store type if one not set as bean property, via config, or via system property.
static java.lang.String REMOTING_ALGORITHM
           
static java.lang.String REMOTING_KEY_ALIAS
           
static java.lang.String REMOTING_KEY_STORE_FILE_PATH
           
static java.lang.String REMOTING_KEY_STORE_PASSWORD
           
static java.lang.String REMOTING_KEY_STORE_TYPE
           
static java.lang.String REMOTING_TRUST_ALGORITHM
           
static java.lang.String REMOTING_TRUST_STORE_FILE_PATH
           
static java.lang.String REMOTING_TRUST_STORE_PASSWORD
           
static java.lang.String REMOTING_TRUST_STORE_TYPE
           
static java.lang.String REMOTING_USE_CLIENT_MODE
           
static java.lang.String STANDARD_KEY_STORE_FILE_PATH
           
static java.lang.String STANDARD_KEY_STORE_PASSWORD
           
static java.lang.String STANDARD_KEY_STORE_TYPE
           
static java.lang.String STANDARD_TRUST_STORE_FILE_PATH
           
static java.lang.String STANDARD_TRUST_STORE_PASSWORD
           
static java.lang.String STANDARD_TRUST_STORE_TYPE
           
 
Constructor Summary
RemotingSSLSocketFactory(java.util.Map config)
           
 
Method Summary
 java.net.Socket createSocket()
           
 java.net.Socket createSocket(java.net.InetAddress inetAddress, int i)
           
 java.net.Socket createSocket(java.net.InetAddress inetAddress, int i, java.net.InetAddress inetAddress1, int i1)
           
 java.net.Socket createSocket(java.net.Socket socket, java.lang.String string, int i, boolean b)
           
 java.net.Socket createSocket(java.lang.String string, int i)
           
 java.net.Socket createSocket(java.lang.String string, int i, java.net.InetAddress inetAddress, int i1)
           
 java.lang.String getAlgorithm()
           
 java.lang.String[] getDefaultCipherSuites()
           
 java.lang.String getKeyAlias()
           
 java.lang.String getKeyStoreType()
           
 java.lang.String getProtocol()
           
 java.security.Provider getProvider()
           
 java.lang.String[] getSupportedCipherSuites()
           
 java.lang.String getTrustAlgorithm()
           
 java.lang.String getTrustStoreType()
           
 void setAlgorithm(java.lang.String algorithm)
           
 void setKeyAlias(java.lang.String alias)
           
 void setKeyStoreFile(java.lang.String keyStoreFilePath)
           
 void setKeyStorePassword(java.lang.String keyStorePassword)
           
 void setKeyStoreType(java.lang.String keyStoreType)
           
 void setProtocol(java.lang.String protocol)
           
 void setProvider(java.security.Provider provider)
           
 void setProviderName(java.lang.String providerName)
           
 void setSecureRandom(java.security.SecureRandom secureRandom)
           
 void setTrustAlgorithm(java.lang.String algorithm)
           
 void setTrustStoreFile(java.lang.String trustStoreFilePath)
           
 void setTrustStorePassword(java.lang.String trustStorePassword)
           
 void setTrustStoreType(java.lang.String trustStoreType)
           
 
Methods inherited from class javax.net.ssl.SSLSocketFactory
getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOTING_KEY_STORE_FILE_PATH

public static final java.lang.String REMOTING_KEY_STORE_FILE_PATH
See Also:
Constant Field Values

STANDARD_KEY_STORE_FILE_PATH

public static final java.lang.String STANDARD_KEY_STORE_FILE_PATH
See Also:
Constant Field Values

REMOTING_KEY_STORE_PASSWORD

public static final java.lang.String REMOTING_KEY_STORE_PASSWORD
See Also:
Constant Field Values

STANDARD_KEY_STORE_PASSWORD

public static final java.lang.String STANDARD_KEY_STORE_PASSWORD
See Also:
Constant Field Values

DEFAULT_KEY_STORE_TYPE

public static final java.lang.String DEFAULT_KEY_STORE_TYPE
Default key store type if one not set as bean property, via config, or via system property. Value is 'JKS'.

See Also:
Constant Field Values

REMOTING_KEY_STORE_TYPE

public static final java.lang.String REMOTING_KEY_STORE_TYPE
See Also:
Constant Field Values

STANDARD_KEY_STORE_TYPE

public static final java.lang.String STANDARD_KEY_STORE_TYPE
See Also:
Constant Field Values

DEFAULT_ALGORITHM

public static final java.lang.String DEFAULT_ALGORITHM
Default algorithm if one net set as bean property or via config. Value is 'SunX509'.

See Also:
Constant Field Values

REMOTING_ALGORITHM

public static final java.lang.String REMOTING_ALGORITHM
See Also:
Constant Field Values

REMOTING_KEY_ALIAS

public static final java.lang.String REMOTING_KEY_ALIAS
See Also:
Constant Field Values

REMOTING_TRUST_ALGORITHM

public static final java.lang.String REMOTING_TRUST_ALGORITHM
See Also:
Constant Field Values

REMOTING_TRUST_STORE_TYPE

public static final java.lang.String REMOTING_TRUST_STORE_TYPE
See Also:
Constant Field Values

STANDARD_TRUST_STORE_TYPE

public static final java.lang.String STANDARD_TRUST_STORE_TYPE
See Also:
Constant Field Values

REMOTING_TRUST_STORE_PASSWORD

public static final java.lang.String REMOTING_TRUST_STORE_PASSWORD
See Also:
Constant Field Values

STANDARD_TRUST_STORE_PASSWORD

public static final java.lang.String STANDARD_TRUST_STORE_PASSWORD
See Also:
Constant Field Values

REMOTING_TRUST_STORE_FILE_PATH

public static final java.lang.String REMOTING_TRUST_STORE_FILE_PATH
See Also:
Constant Field Values

STANDARD_TRUST_STORE_FILE_PATH

public static final java.lang.String STANDARD_TRUST_STORE_FILE_PATH
See Also:
Constant Field Values

REMOTING_USE_CLIENT_MODE

public static final java.lang.String REMOTING_USE_CLIENT_MODE
See Also:
Constant Field Values
Constructor Detail

RemotingSSLSocketFactory

public RemotingSSLSocketFactory(java.util.Map config)
Method Detail

setProtocol

public void setProtocol(java.lang.String protocol)

getProtocol

public java.lang.String getProtocol()

setProvider

public void setProvider(java.security.Provider provider)

setProviderName

public void setProviderName(java.lang.String providerName)

getProvider

public java.security.Provider getProvider()

setSecureRandom

public void setSecureRandom(java.security.SecureRandom secureRandom)

setTrustStoreFile

public void setTrustStoreFile(java.lang.String trustStoreFilePath)

setKeyStoreFile

public void setKeyStoreFile(java.lang.String keyStoreFilePath)

setTrustStorePassword

public void setTrustStorePassword(java.lang.String trustStorePassword)

setKeyStorePassword

public void setKeyStorePassword(java.lang.String keyStorePassword)

setTrustStoreType

public void setTrustStoreType(java.lang.String trustStoreType)

getTrustStoreType

public java.lang.String getTrustStoreType()

getKeyStoreType

public java.lang.String getKeyStoreType()

setKeyStoreType

public void setKeyStoreType(java.lang.String keyStoreType)

setTrustAlgorithm

public void setTrustAlgorithm(java.lang.String algorithm)

getTrustAlgorithm

public java.lang.String getTrustAlgorithm()

getAlgorithm

public java.lang.String getAlgorithm()

setAlgorithm

public void setAlgorithm(java.lang.String algorithm)

getKeyAlias

public java.lang.String getKeyAlias()

setKeyAlias

public void setKeyAlias(java.lang.String alias)

getDefaultCipherSuites

public java.lang.String[] getDefaultCipherSuites()

getSupportedCipherSuites

public java.lang.String[] getSupportedCipherSuites()

createSocket

public java.net.Socket createSocket()
                             throws java.io.IOException
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.net.Socket socket,
                                    java.lang.String string,
                                    int i,
                                    boolean b)
                             throws java.io.IOException
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String string,
                                    int i)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException

createSocket

public java.net.Socket createSocket(java.net.InetAddress inetAddress,
                                    int i)
                             throws java.io.IOException
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String string,
                                    int i,
                                    java.net.InetAddress inetAddress,
                                    int i1)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException

createSocket

public java.net.Socket createSocket(java.net.InetAddress inetAddress,
                                    int i,
                                    java.net.InetAddress inetAddress1,
                                    int i1)
                             throws java.io.IOException
Throws:
java.io.IOException


Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.