| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final SSLParametersImpl | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Socket | accept()
Overrides java. |
| public String[] | getEnabledCipherSuites()
Implements abstract javax. |
| public String[] | Returns: an array of protocols namesImplements abstract javax. |
| public boolean | getEnableSessionCreation()
Implements abstract javax. |
| public boolean | getNeedClientAuth()
Implements abstract javax. accepted server-mode SSLSockets.
|
| public String[] | getSupportedCipherSuites()
Implements abstract javax. |
| public String[] | Returns: an array of protocols namesImplements abstract javax. |
| public boolean | getUseClientMode()
Implements abstract javax. |
| public boolean | getWantClientAuth()
Implements abstract javax. |
| pack-priv boolean | |
| pack-priv void | setChannelIdEnabled(boolean enabled)
Enables/disables the TLS Channel ID extension for this server socket. |
| public void | setEnabledCipherSuites(String[]
the names of all the cipher suites to enable suites)Implements abstract javax. |
| public void | setEnabledProtocols(String[]
names of all the protocols to enable. protocols)Implements abstract javax. |
| public void | setEnableSessionCreation(boolean
true indicates that sessions may be created; this
is the default. false indicates that an existing session
must be resumed. flag)Implements abstract javax. |
| public void | setNeedClientAuth(boolean
set to true if client authentication is required,
or false if no client authentication is desired. need)Implements abstract javax. accepted server-mode
SSLSockets will be initially configured to
require client authentication.
|
| public void | setUseClientMode(boolean
true if newly accepted connections should use SSL
client mode. mode)Implements abstract javax. |
| pack-priv ConscryptServerSocket | |
| public void | setWantClientAuth(boolean
set to true if client authentication is requested,
or false if no client authentication is desired. want)Implements abstract javax. accepted server-mode
SSLSockets will be initially configured to
request client authentication.
|
| channelIdEnabled | back to summary |
|---|---|
| private boolean channelIdEnabled | |
| sslParameters | back to summary |
|---|---|
| private final SSLParametersImpl sslParameters | |
| useEngineSocket | back to summary |
|---|---|
| private boolean useEngineSocket | |
| ConscryptServerSocket | back to summary |
|---|---|
| pack-priv ConscryptServerSocket(SSLParametersImpl sslParameters) throws IOException | |
| ConscryptServerSocket | back to summary |
|---|---|
| pack-priv ConscryptServerSocket(int port, SSLParametersImpl sslParameters) throws IOException | |
| ConscryptServerSocket | back to summary |
|---|---|
| pack-priv ConscryptServerSocket(int port, int backlog, SSLParametersImpl sslParameters) throws IOException | |
| ConscryptServerSocket | back to summary |
|---|---|
| pack-priv ConscryptServerSocket(int port, int backlog, InetAddress iAddress, SSLParametersImpl sslParameters) throws IOException | |
| accept | back to summary |
|---|---|
| public Socket accept() throws IOException Overrides java. Doc from java. Listens for a connection to be made to this socket and accepts it. The method blocks until a connection is made. This method is interruptible in the following circumstances:
A new Socket
| |
| getEnabledCipherSuites | back to summary |
|---|---|
| public String[] getEnabledCipherSuites() Implements abstract javax. Doc from javax. Returns the list of cipher suites which are currently enabled for use by newly accepted connections. If this list has not been explicitly modified, a system-provided default guarantees a minimum quality of service in all enabled cipher suites. Note that even if a suite is enabled, it may never be used. This can occur if the peer does not support it, or its use is restricted, or the requisite certificates (and private keys) for the suite are not available, or an anonymous suite is enabled but authentication is required. The returned array includes cipher suites from the list of standard cipher suite names in the JSSE Cipher Suite Names section of the Java Security Standard Algorithm Names Specification, and may also include other cipher suites that the provider supports. | |
| getEnabledProtocols | back to summary |
|---|---|
| public String[] getEnabledProtocols() Implements abstract javax. The names of the protocols' versions that in use on this SSL connection. | |
| getEnableSessionCreation | back to summary |
|---|---|
| public boolean getEnableSessionCreation() Implements abstract javax. Doc from javax. Returns true if new SSL sessions may be established by the sockets which are created from this server socket.
| |
| getNeedClientAuth | back to summary |
|---|---|
| public boolean getNeedClientAuth() Implements abstract javax. Doc from javax. Returns true if client authentication will be required on
newly
The initial inherited setting may be overridden by calling
| |
| getSupportedCipherSuites | back to summary |
|---|---|
| public String[] getSupportedCipherSuites() Implements abstract javax. Doc from javax. Returns the names of the cipher suites which could be enabled for use on an SSL connection. Normally, only a subset of these will actually be enabled by default, since this list may include cipher suites which do not meet quality of service requirements for those defaults. Such cipher suites are useful in specialized applications. The returned array includes cipher suites from the list of standard cipher suite names in the JSSE Cipher Suite Names section of the Java Security Standard Algorithm Names Specification, and may also include other cipher suites that the provider supports. | |
| getSupportedProtocols | back to summary |
|---|---|
| public String[] getSupportedProtocols() Implements abstract javax. The names of the protocols' versions that may be used on this SSL connection. | |
| getUseClientMode | back to summary |
|---|---|
| public boolean getUseClientMode() Implements abstract javax. Doc from javax. Returns true if accepted connections will be in SSL client mode.
| |
| getWantClientAuth | back to summary |
|---|---|
| public boolean getWantClientAuth() Implements abstract javax. Doc from javax. Returns true if client authentication will be requested on newly accepted server-mode connections.
The initial inherited setting may be overridden by calling
| |
| isChannelIdEnabled | back to summary |
|---|---|
| pack-priv boolean isChannelIdEnabled() Checks whether the TLS Channel ID extension is enabled for this server socket. | |
| setChannelIdEnabled | back to summary |
|---|---|
| pack-priv void setChannelIdEnabled(boolean enabled) Enables/disables the TLS Channel ID extension for this server socket. | |
| setEnabledCipherSuites | back to summary |
|---|---|
| public void setEnabledCipherSuites(String[] suites) Implements abstract javax. This method enables the cipher suites listed by getSupportedCipherSuites().
| |
| setEnabledProtocols | back to summary |
|---|---|
| public void setEnabledProtocols(String[] protocols) Implements abstract javax. This method enables the protocols' versions listed by getSupportedProtocols().
| |
| setEnableSessionCreation | back to summary |
|---|---|
| public void setEnableSessionCreation(boolean flag) Implements abstract javax. Doc from javax. Controls whether new SSL sessions may be established by the sockets which are created from this server socket.
| |
| setNeedClientAuth | back to summary |
|---|---|
| public void setNeedClientAuth(boolean need) Implements abstract javax. Doc from javax. Controls whether A socket's client authentication setting is one of the following:
Unlike
Calling this method overrides any previous setting made by
this method or
The initial inherited setting may be overridden by calling
| |
| setUseClientMode | back to summary |
|---|---|
| public void setUseClientMode(boolean mode) Implements abstract javax. Doc from javax. Controls whether accepted connections are in the (default) SSL server mode, or the SSL client mode. Servers normally authenticate themselves, and clients are not required to do so. In rare cases, TCP servers need to act in the SSL client mode on newly accepted connections. For example, FTP clients acquire server sockets and listen there for reverse connections from the server. An FTP client would use an SSLServerSocket in "client" mode to accept the reverse connection while the FTP server uses an SSLSocket with "client" mode disabled to initiate the connection. During the resulting handshake, existing SSL sessions may be reused.
| |
| setUseEngineSocket | back to summary |
|---|---|
| pack-priv ConscryptServerSocket setUseEngineSocket(boolean useEngineSocket) Configures the socket to be created for this instance. | |
| setWantClientAuth | back to summary |
|---|---|
| public void setWantClientAuth(boolean want) Implements abstract javax. Doc from javax. Controls whether A socket's client authentication setting is one of the following:
Unlike
Calling this method overrides any previous setting made by
this method or
The initial inherited setting may be overridden by calling
| |