java.lang.Object | ||
↳ | javax.rmi.ssl.SslRMIServerSocketFactory | |
↳ | sun.management.jmxremote.SSLContextRMIServerSocketFactory |
This class represents a specialized version of the
SslRMIServerSocketFactory
class that
allows to supply an SSLContext
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new | |||||||||||
Creates a new |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a server socket that accepts SSL connections configured according to this factory's SSL socket configuration parameters. | |||||||||||
Indicates whether some other object is "equal to" this one. | |||||||||||
Returns a hash code value for this
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new SSLContextRMIServerSocketFactory
with
SSL sockets created from the SSLSocketFactory
returned
by the given SSLContext
and configured with the default
SSL parameters.
SSL connections accepted by server sockets created by this factory have the default cipher suites and protocol versions enabled and do not require client authentication.
context | the SSL context to be used for creating SSL sockets.
Calling this constructor with a null context is equivalent
to calling SslRMIServerSocketFactory() .
|
---|
Creates a new SSLContextRMIServerSocketFactory
with
SSL sockets created from the SSLSocketFactory
returned
by the given SSLContext
and configured with the supplied
SSL parameters.
context | the SSL context to be used for creating SSL sockets.
Calling this constructor with a null context is equivalent
to calling SslRMIServerSocketFactory(enabledCipherSuites,
enabledProtocols, needClientAuth) . |
---|---|
enabledCipherSuites | names of all the cipher suites to
enable on SSL connections accepted by server sockets created by
this factory, or null to use the cipher suites
that are enabled by default |
enabledProtocols | names of all the protocol versions to
enable on SSL connections accepted by server sockets created by
this factory, or null to use the protocol versions
that are enabled by default |
needClientAuth | true to require client
authentication on SSL connections accepted by server sockets
created by this factory; false to not require
client authentication |
IllegalArgumentException | when one or more of the cipher
suites named by the enabledCipherSuites parameter is
not supported, when one or more of the protocols named by the
enabledProtocols parameter is not supported or when
a problem is encountered while trying to check if the supplied
cipher suites and protocols to be enabled are supported. |
---|
Creates a server socket that accepts SSL connections configured
according to this factory's SSL socket configuration parameters.
If a null SSLContext
was supplied in the constructor
this method just calls super.createServerSocket(port)
.
Otherwise, the SSLSocketFactory
returned by the call to
SSLContext.getSocketFactory()
will be used to create the
SSL sockets.
port | the port number |
---|
IOException |
---|
Indicates whether some other object is "equal to" this one.
Two SSLContextRMIServerSocketFactory
objects are
equal if they have been constructed with the same SSL context and
SSL socket configuration parameters.
A subclass should override this method (as well as
hashCode()
) if it adds instance state that affects
equality.
obj | the reference object with which to compare. |
---|
true
if this object is the same as the obj
argument; false
otherwise.Returns a hash code value for this
SSLContextRMIServerSocketFactory
.
SSLContextRMIServerSocketFactory
.