|
|||||||||||
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
An implementation of SocketFactory that creates SSL sockets using the JSSE SSLContext and a JBossSX SecurityDomain for the KeyManagerFactory and TrustManagerFactory objects.
SSLContext
,
SecurityDomain
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(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)
|
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 handshakeCompletedEvent)
|
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 |
Constructor Detail |
public DomainSocketFactory()
public DomainSocketFactory(org.jboss.security.SecurityDomain securityDomain) throws 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
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, InetAddress clientAddr, int clientPort) throws IOException, UnknownHostException
IOException
UnknownHostException
public Socket createSocket(InetAddress serverAddr, int serverPort) throws IOException
IOException
public Socket createSocket(InetAddress serverAddr, int serverPort, InetAddress clientAddr, int clientPort) throws IOException
IOException
public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
IOException
public String[] getDefaultCipherSuites()
public String[] getSupportedCipherSuites()
public static SocketFactory getDefault()
public void handshakeCompleted(HandshakeCompletedEvent handshakeCompletedEvent)
handshakeCompleted
in interface HandshakeCompletedListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |