|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.jboss.security.ssl.DomainSocketFactory
public class DomainSocketFactory
An implementation of SocketFactory that creates SSL sockets using the JSSE SSLContext and a JBossSX SecurityDomain for the KeyManagerFactory and TrustManagerFactory objects.
SSLContext
,
SecurityDomain
,
Serialized FormField Summary | |
---|---|
static String |
HANDSHAKE_COMPLETE_LISTENER
|
Constructor Summary | |
---|---|
DomainSocketFactory()
A default constructor for use when created by Class.newInstance. |
|
DomainSocketFactory(org.jboss.security.SecurityDomain securityDomain)
Create a socket factory instance that uses the given SecurityDomain as the source for the SSL KeyManagerFactory and TrustManagerFactory. |
Method Summary | |
---|---|
Socket |
createSocket(InetAddress serverAddr,
int serverPort)
|
Socket |
createSocket(InetAddress serverAddr,
int serverPort,
InetAddress clientAddr,
int clientPort)
|
Socket |
createSocket(InetAddress serverAddr,
int serverPort,
int timeout)
|
Socket |
createSocket(Socket s,
String host,
int port,
boolean autoClose)
|
Socket |
createSocket(String serverHost,
int serverPort)
Create a client socket connected to the specified host and port. |
Socket |
createSocket(String serverHost,
int serverPort,
InetAddress clientAddr,
int clientPort)
|
Socket |
createSocket(String serverHost,
int serverPort,
int timeout)
Create a client socket connected to the specified host and port. |
static SocketFactory |
getDefault()
The default SocketFactory which looks to the java:/jaas/other security domain configuration. |
String[] |
getDefaultCipherSuites()
|
org.jboss.security.SecurityDomain |
getSecurityDomain()
|
String[] |
getSupportedCipherSuites()
|
void |
handshakeCompleted(HandshakeCompletedEvent event)
|
boolean |
isNeedsClientAuth()
|
boolean |
isWantsClientAuth()
|
void |
setNeedsClientAuth(boolean needsClientAuth)
|
void |
setSecurityDomain(org.jboss.security.SecurityDomain securityDomain)
|
void |
setWantsClientAuth(boolean wantsClientAuth)
|
Methods inherited from class javax.net.SocketFactory |
---|
createSocket |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String HANDSHAKE_COMPLETE_LISTENER
Constructor Detail |
---|
public DomainSocketFactory()
public DomainSocketFactory(org.jboss.security.SecurityDomain securityDomain) throws IOException
IOException
Method Detail |
---|
public org.jboss.security.SecurityDomain getSecurityDomain()
public void setSecurityDomain(org.jboss.security.SecurityDomain securityDomain)
public boolean isWantsClientAuth()
public void setWantsClientAuth(boolean wantsClientAuth)
public boolean isNeedsClientAuth()
public void setNeedsClientAuth(boolean needsClientAuth)
public Socket createSocket(String serverHost, int serverPort) throws IOException, UnknownHostException
createSocket
in class SocketFactory
serverHost
- - the host nameserverPort
- - the port number
IOException
- if an I/O error occurs during socket creation.
UnknownHostException
public Socket createSocket(String serverHost, int serverPort, int timeout) throws IOException, UnknownHostException
serverHost
- - the host nameserverPort
- - the port numbertimeout
- the timeout value to be used in milliseconds
IOException
- if an I/O error occurs during socket creation.
UnknownHostException
public Socket createSocket(String serverHost, int serverPort, InetAddress clientAddr, int clientPort) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(InetAddress serverAddr, int serverPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress serverAddr, int serverPort, InetAddress clientAddr, int clientPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress serverAddr, int serverPort, int timeout) throws IOException
IOException
public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
createSocket
in class SSLSocketFactory
IOException
public String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class SSLSocketFactory
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLSocketFactory
public static SocketFactory getDefault()
public void handshakeCompleted(HandshakeCompletedEvent event)
handshakeCompleted
in interface HandshakeCompletedListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |