|
||||||||||
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(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()
Deprecated. use getCipherSuites |
String[] |
getCipherSuites()
|
static ServerSocketFactory |
getDefault()
The default ServerSocketFactory which looks to the java:/jaas/other security domain configuration. |
String[] |
getDefaultCipherSuites()
|
String[] |
getProtocols()
|
SecurityDomain |
getSecurityDomain()
|
static SSLSession |
getSSLSession(String sessionID)
|
String[] |
getSupportedCipherSuites()
|
boolean |
isNeedsClientAuth()
|
boolean |
isWantsClientAuth()
|
void |
setBindAddress(String host)
|
void |
setCiperSuites(String[] cipherSuites)
Deprecated. use getCipherSuites |
void |
setCipherSuites(String[] cipherSuites)
|
void |
setNeedsClientAuth(boolean needsClientAuth)
|
void |
setProtocols(String[] protocols)
|
void |
setSecurityDomain(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(SecurityDomain securityDomain) throws IOException
IOException
Method Detail |
---|
public static ServerSocketFactory getDefault()
public static SSLSession getSSLSession(String sessionID)
public String getBindAddress()
public void setBindAddress(String host) throws UnknownHostException
UnknownHostException
public SecurityDomain getSecurityDomain()
public void setSecurityDomain(SecurityDomain securityDomain)
public boolean isWantsClientAuth()
public void setWantsClientAuth(boolean wantsClientAuth)
public boolean isNeedsClientAuth()
public void setNeedsClientAuth(boolean needsClientAuth)
public String[] getCipherSuites()
public void setCipherSuites(String[] cipherSuites)
cipherSuites
- - set of cipher suite names to usepublic String[] getCiperSuites()
public void setCiperSuites(String[] cipherSuites)
cipherSuites
- - set of cipher suite names to usepublic 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 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 |