|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.net.ServerSocketFactory
javax.net.ssl.SSLServerSocketFactory
org.jboss.security.ssl.DomainServerSocketFactory
public class DomainServerSocketFactory
An implementation of ServerSocketFactory that creates SSL server sockets using the JSSE SSLContext and a JBossSX SecurityDomain for the KeyManagerFactory and TrustManagerFactory objects.
SSLContext
,
SecurityDomain
Constructor Summary | |
---|---|
DomainServerSocketFactory()
A default constructor for use when created by Class.newInstance. |
|
DomainServerSocketFactory(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 | |
---|---|
ServerSocket |
createServerSocket(int port)
|
ServerSocket |
createServerSocket(int port,
int backlog)
|
ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress ifAddress)
Returns a server socket which uses only the specified network interface on the local host, is bound to a the specified port, and uses the specified connection backlog. |
String |
getBindAddress()
|
String[] |
getCiperSuites()
|
static ServerSocketFactory |
getDefault()
The default ServerSocketFactory which looks to the java:/jaas/other security domain configuration. |
String[] |
getDefaultCipherSuites()
|
String[] |
getProtocols()
|
org.jboss.security.SecurityDomain |
getSecurityDomain()
|
String[] |
getSupportedCipherSuites()
|
boolean |
isNeedsClientAuth()
|
boolean |
isWantsClientAuth()
|
void |
setBindAddress(String host)
|
void |
setCiperSuites(String[] ciperSuites)
|
void |
setNeedsClientAuth(boolean needsClientAuth)
|
void |
setProtocols(String[] protocols)
|
void |
setSecurityDomain(org.jboss.security.SecurityDomain securityDomain)
|
void |
setWantsClientAuth(boolean wantsClientAuth)
|
Methods inherited from class javax.net.ServerSocketFactory |
---|
createServerSocket |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DomainServerSocketFactory()
public DomainServerSocketFactory(org.jboss.security.SecurityDomain securityDomain) throws IOException
IOException
Method Detail |
---|
public String getBindAddress()
public void setBindAddress(String host) throws UnknownHostException
UnknownHostException
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 String[] getCiperSuites()
public void setCiperSuites(String[] ciperSuites)
public String[] getProtocols()
public void setProtocols(String[] protocols)
public ServerSocket createServerSocket(int port) throws IOException
createServerSocket
in class ServerSocketFactory
IOException
public ServerSocket createServerSocket(int port, int backlog) throws IOException
createServerSocket
in class ServerSocketFactory
IOException
public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException
createServerSocket
in class ServerSocketFactory
port
- the port to listen tobacklog
- how many connections are queuedifAddress
- the network interface address to use
IOException
- for networking errorspublic static ServerSocketFactory getDefault()
public String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class SSLServerSocketFactory
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLServerSocketFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |