|
CryptoPro JTLS. Public API. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectru.CryptoPro.ssl.SSLTCContext
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.
Method Summary | |
javax.net.ssl.SSLSessionContext |
getClientSessionContext()
Returns the client session context, which represents the set of SSL sessions available for use during the handshake phase of client-side SSL sockets. |
static SSLTCContext |
getInstance(java.lang.String protocol)
Generates a SSLTCContext object that implements the specified
secure socket protocol.
|
static SSLTCContext |
getInstance(java.lang.String protocol,
java.security.Provider provider)
Generates a SSLTCContext object that implements the specified
secure socket protocol from the specified provider. |
static SSLTCContext |
getInstance(java.lang.String protocol,
java.lang.String provider)
Generates a SSLTCContext object that implements the specified
secure socket protocol from the specified provider. |
java.lang.String |
getProtocol()
Returns the protocol name of this SSLTCContext object.
|
java.security.Provider |
getProvider()
Returns the provider of this SSLTCContext object. |
javax.net.ssl.SSLSessionContext |
getServerSessionContext()
Returns the server session context, which represents the set of SSL sessions available for use during the handshake phase of server-side SSL sockets. |
javax.net.ssl.SSLServerSocketFactory |
getServerSocketFactory()
Returns a ServerSocketFactory object for this context. |
javax.net.ssl.SSLSocketFactory |
getSocketFactory()
Returns a SocketFactory object for this context. |
void |
init(javax.net.ssl.KeyManager[] km,
javax.net.ssl.TrustManager[] tm,
java.security.SecureRandom random)
Initializes this context. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static SSLTCContext getInstance(java.lang.String protocol) throws java.security.NoSuchAlgorithmException
SSLTCContext
object that implements the specified
secure socket protocol.
If the default provider package provides an implementation of the
requested key management algorithm, an instance of
SSLTCContext
containing that implementation is returned. If
the algorithm is not available in the default provider package, other
provider packages are searched.
protocol
- the standard name of the requested protocol.
SSLTCContext
object
java.security.NoSuchAlgorithmException
- if the specified protocol is not
available in the default provider package or any of the other provider
packages that were searched.public static SSLTCContext getInstance(java.lang.String protocol, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
SSLTCContext
object that implements the specified
secure socket protocol from the specified provider.
protocol
- the standard name of the requested protocol.provider
- the name of the provider
SSLTCContext
object
java.security.NoSuchAlgorithmException
- if the specified protocol is not
available from the specified provider.
java.security.NoSuchProviderException
- if the specified provider has not been
configured.
java.lang.IllegalArgumentException
- if provider is not specifiedpublic static SSLTCContext getInstance(java.lang.String protocol, java.security.Provider provider) throws java.security.NoSuchAlgorithmException
SSLTCContext
object that implements the specified
secure socket protocol from the specified provider.
protocol
- the standard name of the requested protocol.provider
- an instance of the provider
SSLTCContext
object
java.security.NoSuchAlgorithmException
- if the specified protocol is not
available from the specified provider.
java.lang.IllegalArgumentException
- if provider is not specifiedpublic final java.lang.String getProtocol()
SSLTCContext
object.
This is the same name that was specified in one of the
getInstance
calls that created this SSLTCContext
object.
SSLTCContext
object.public final java.security.Provider getProvider()
SSLTCContext
object.
SSLTCContext
objectpublic final void init(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom random) throws java.security.KeyManagementException
km
- the sources of authentication keys or nulltm
- the sources of peer authentication trust decisions or nullrandom
- the source of randomness for this generator or null
java.security.KeyManagementException
- if this operation failspublic final javax.net.ssl.SSLSocketFactory getSocketFactory()
SocketFactory
object for this context.
SocketFactory
objectpublic final javax.net.ssl.SSLServerSocketFactory getServerSocketFactory()
ServerSocketFactory
object for this context.
ServerSocketFactory
objectpublic final javax.net.ssl.SSLSessionContext getServerSessionContext()
public final javax.net.ssl.SSLSessionContext getClientSessionContext()
|
Copyright Crypto-Pro. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |