|
|||||||||||
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
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
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
IOException
public ServerSocket createServerSocket(int port, int backlog) throws IOException
IOException
public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException
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()
public String[] getSupportedCipherSuites()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |