final class SSLServerSocketImpl extends SSLServerSocket
Also, the constructors take an explicit authentication context parameter, giving flexibility with respect to how the server socket authenticates itself. That policy flexibility is not exposed through the standard SSLServerSocketFactory API.
System security defaults prevent server sockets from accepting connections if they the authentication context has not been given a certificate chain and its matching private key. If the clients of your application support "anonymous" cipher suites, you may be able to configure a server socket to accept those suites.
SSLSocketImpl,
SSLServerSocketFactoryImpl| 限定符和类型 | 字段和说明 |
|---|---|
private SSLConfiguration |
sslConfig |
private SSLContextImpl |
sslContext |
| 构造器和说明 |
|---|
SSLServerSocketImpl(SSLContextImpl sslContext) |
SSLServerSocketImpl(SSLContextImpl sslContext,
int port,
int backlog) |
SSLServerSocketImpl(SSLContextImpl sslContext,
int port,
int backlog,
InetAddress address) |
| 限定符和类型 | 方法和说明 |
|---|---|
Socket |
accept() |
String[] |
getEnabledCipherSuites() |
String[] |
getEnabledProtocols() |
boolean |
getEnableSessionCreation() |
boolean |
getNeedClientAuth() |
SSLParameters |
getSSLParameters() |
String[] |
getSupportedCipherSuites() |
String[] |
getSupportedProtocols() |
boolean |
getUseClientMode() |
boolean |
getWantClientAuth() |
void |
setEnabledCipherSuites(String[] suites) |
void |
setEnabledProtocols(String[] protocols) |
void |
setEnableSessionCreation(boolean flag) |
void |
setNeedClientAuth(boolean need) |
void |
setSSLParameters(SSLParameters params) |
void |
setUseClientMode(boolean useClientMode) |
void |
setWantClientAuth(boolean want) |
String |
toString() |
private final SSLContextImpl sslContext
private final SSLConfiguration sslConfig
SSLServerSocketImpl(SSLContextImpl sslContext) throws IOException
IOExceptionSSLServerSocketImpl(SSLContextImpl sslContext, int port, int backlog) throws IOException
IOExceptionSSLServerSocketImpl(SSLContextImpl sslContext, int port, int backlog, InetAddress address) throws IOException
IOExceptionpublic String[] getEnabledCipherSuites()
getEnabledCipherSuites 在类中 SSLServerSocketpublic void setEnabledCipherSuites(String[] suites)
setEnabledCipherSuites 在类中 SSLServerSocketpublic String[] getSupportedCipherSuites()
getSupportedCipherSuites 在类中 SSLServerSocketpublic String[] getSupportedProtocols()
getSupportedProtocols 在类中 SSLServerSocketpublic String[] getEnabledProtocols()
getEnabledProtocols 在类中 SSLServerSocketpublic void setEnabledProtocols(String[] protocols)
setEnabledProtocols 在类中 SSLServerSocketpublic void setNeedClientAuth(boolean need)
setNeedClientAuth 在类中 SSLServerSocketpublic boolean getNeedClientAuth()
getNeedClientAuth 在类中 SSLServerSocketpublic void setWantClientAuth(boolean want)
setWantClientAuth 在类中 SSLServerSocketpublic boolean getWantClientAuth()
getWantClientAuth 在类中 SSLServerSocketpublic void setUseClientMode(boolean useClientMode)
setUseClientMode 在类中 SSLServerSocketpublic boolean getUseClientMode()
getUseClientMode 在类中 SSLServerSocketpublic void setEnableSessionCreation(boolean flag)
setEnableSessionCreation 在类中 SSLServerSocketpublic boolean getEnableSessionCreation()
getEnableSessionCreation 在类中 SSLServerSocketpublic SSLParameters getSSLParameters()
getSSLParameters 在类中 SSLServerSocketpublic void setSSLParameters(SSLParameters params)
setSSLParameters 在类中 SSLServerSocketpublic Socket accept() throws IOException
accept 在类中 ServerSocketIOExceptionpublic String toString()
toString 在类中 ServerSocketCopyright © 2023. All rights reserved.