|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.ServerSocket | +--javax.net.ssl.SSLServerSocket
This class is extended by server sockets which return connections which are protected using the Secure Sockets Layer (SSL) protocol, and which extend the SSLSocket class.
ServerSocket
,
SSLSocket
Constructor Summary | |
protected |
SSLServerSocket(int port)
Used only by subclasses. |
protected |
SSLServerSocket(int port,
int backlog)
Used only by subclasses. |
protected |
SSLServerSocket(int port,
int backlog,
java.net.InetAddress address)
Used only by subclasses. |
Method Summary | |
abstract java.lang.String[] |
getEnabledCipherSuites()
Returns the list of cipher suites which are currently enabled for use by newly accepted connections. |
abstract boolean |
getEnableSessionCreation()
Returns true if new SSL sessions may be established by the sockets which are created from this server socket. |
abstract boolean |
getNeedClientAuth()
Returns true if client authentication is required on newly accepted connections. |
abstract java.lang.String[] |
getSupportedCipherSuites()
Returns the names of the cipher suites which could be enabled for use on an SSL connection. |
abstract boolean |
getUseClientMode()
Returns true if accepted connections will be in SSL client mode. |
abstract void |
setEnabledCipherSuites(java.lang.String[] suites)
Controls which particular SSL cipher suites are enabled for use by accepted connections. |
abstract void |
setEnableSessionCreation(boolean flag)
Controls whether new SSL sessions may be established by the sockets which are created from this server socket. |
abstract void |
setNeedClientAuth(boolean flag)
Controls whether the connections which are accepted must include client authentication. |
abstract void |
setUseClientMode(boolean flag)
Controls whether accepted connections are in the (default) SSL server mode, or the SSL client mode. |
Methods inherited from class java.net.ServerSocket |
accept,
close,
getInetAddress,
getLocalPort,
getSoTimeout,
implAccept,
setSocketFactory,
setSoTimeout,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
protected SSLServerSocket(int port) throws java.io.IOException
port
- the port on which to listenprotected SSLServerSocket(int port, int backlog) throws java.io.IOException
port
- the port on which to listenbacklog
- how many connections may be pending before
the system should start rejecting new requestsprotected SSLServerSocket(int port, int backlog, java.net.InetAddress address) throws java.io.IOException
port
- the port on which to listenbacklog
- how many connections may be pending before
the system should start rejecting new requestsaddress
- the address of the network interface through
which connections will be acceptedMethod Detail |
public abstract java.lang.String[] getEnabledCipherSuites()
There are several reasons why an enabled cipher suite might not actually be used. For example: the server socket might not have appropriate private keys available to it or the cipher suite might be anonymous, precluding the use of client authentication, while the server socket has been told to require that sort of authentication.
getSupportedCipherSuites()
,
setEnabledCipherSuites(java.lang.String[])
public abstract void setEnabledCipherSuites(java.lang.String[] suites)
suites
- Names of all the cipher suites to enable; null
means to accept system defaults.getSupportedCipherSuites()
,
getEnabledCipherSuites()
public abstract java.lang.String[] getSupportedCipherSuites()
getEnabledCipherSuites()
,
setEnabledCipherSuites(java.lang.String[])
public abstract void setNeedClientAuth(boolean flag)
flag
- true if the clients must authenticate themselves.public abstract boolean getNeedClientAuth()
setNeedClientAuth(boolean)
public abstract void setUseClientMode(boolean flag)
flag
- true if newly accepted connections should use SSL
client mode.public abstract boolean getUseClientMode()
setUseClientMode(boolean)
public abstract void setEnableSessionCreation(boolean flag)
flag
- true indicates that sessions may be created; this
is the default. false indicates that an existing session
must be resumed.public abstract boolean getEnableSessionCreation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |