java.lang.Object | |
↳ | com.sun.net.ssl.SSLContext |
This class is deprecated.
As of JDK 1.4, this implementation-specific class was
replaced by SSLContext
.
Instances of this class represent a secure socket protocol implementation which acts as a factory for secure socket factories. This class is initialized with an optional set of key and trust managers and source of secure random bytes.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an SSLContext object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Generates a
SSLContext object that implements the
specified secure socket protocol. | |||||||||||
Generates a
SSLContext object that implements the
specified secure socket protocol. | |||||||||||
Generates a
SSLContext object that implements the
specified secure socket protocol. | |||||||||||
Returns the protocol name of this
SSLContext object. | |||||||||||
Returns the provider of this
SSLContext object. | |||||||||||
Returns a
ServerSocketFactory object for
this context. | |||||||||||
Returns a
SocketFactory object for this
context. | |||||||||||
Initializes this context.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates an SSLContext object.
contextSpi | the delegate |
---|---|
provider | the provider |
Generates a SSLContext
object that implements the
specified secure socket protocol.
protocol | the standard name of the requested protocol. |
---|---|
provider | the name of the provider |
SSLContext
objectNoSuchAlgorithmException | if the specified protocol is not available from the specified provider. |
---|---|
NoSuchProviderException | if the specified provider has not been configured. |
Generates a SSLContext
object that implements the
specified secure socket protocol.
protocol | the standard name of the requested protocol. |
---|---|
provider | an instance of the provider |
SSLContext
objectNoSuchAlgorithmException | if the specified protocol is not available from the specified provider. |
---|
Generates a SSLContext
object that implements the
specified secure socket protocol.
protocol | the standard name of the requested protocol. |
---|
SSLContext
objectNoSuchAlgorithmException | if the specified protocol is not available in the default provider package or any of the other provider packages that were searched. |
---|
Returns the protocol name of this SSLContext
object.
This is the same name that was specified in one of the
getInstance
calls that created this
SSLContext
object.
SSLContext
object.
Returns the provider of this SSLContext
object.
SSLContext
object
Returns a ServerSocketFactory
object for
this context.
Returns a SocketFactory
object for this
context.
Initializes this context. Either of the first two parameters may be null in which case the installed security providers will be searched for the highest priority implementation of the appropriate factory. Likewise, the secure random parameter may be null in which case the default implementation will be used.
km | the sources of authentication keys or null |
---|---|
tm | the sources of peer authentication trust decisions or null |
random | the source of randomness for this generator or null |
KeyManagementException |
---|