|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.net.ssl.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.
| Constructor Summary | |
protected |
SSLContext(SSLContextSpi contextSpi,
java.security.Provider provider,
java.lang.String protocol)
Creates an SSLContext object. |
| Method Summary | |
static SSLContext |
getInstance(java.lang.String protocol)
Generates a SSLContext object that implements the
specified secure socket protocol. |
static SSLContext |
getInstance(java.lang.String protocol,
java.security.Provider provider)
Generates a SSLContext object that implements the
specified secure socket protocol. |
static SSLContext |
getInstance(java.lang.String protocol,
java.lang.String provider)
Generates a SSLContext object that implements the
specified secure socket protocol. |
java.lang.String |
getProtocol()
Returns the protocol name of this SSLContext object. |
java.security.Provider |
getProvider()
Returns the provider of this SSLContext object. |
SSLServerSocketFactory |
getServerSocketFactory()
Returns a ServerSocketFactory object for
this context. |
SSLSocketFactory |
getSocketFactory()
Returns a SocketFactory object for this
context. |
void |
init(KeyManager[] km,
TrustManager[] tm,
java.security.SecureRandom random)
Initializes this context. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
protected SSLContext(SSLContextSpi contextSpi,
java.security.Provider provider,
java.lang.String protocol)
contextSpi - the delegateprovider - the provideralgorithm - the algorithm| Method Detail |
public static SSLContext getInstance(java.lang.String protocol)
throws java.security.NoSuchAlgorithmException
SSLContext object that implements the
specified secure socket protocol.protocol - the standard name of the requested protocol.SSLContext object
public static SSLContext getInstance(java.lang.String protocol,
java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException
SSLContext object that implements the
specified secure socket protocol.protocol - the standard name of the requested protocol.provider - the name of the providerSSLContext object
public static SSLContext getInstance(java.lang.String protocol,
java.security.Provider provider)
throws java.security.NoSuchAlgorithmException
SSLContext object that implements the
specified secure socket protocol.protocol - the standard name of the requested protocol.provider - an instance of the providerSSLContext objectpublic final java.lang.String getProtocol()
SSLContext object.
This is the same name that was specified in one of the
getInstance calls that created this
SSLContext object.
SSLContext object.public final java.security.Provider getProvider()
SSLContext object.SSLContext object
public final void init(KeyManager[] km,
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 nullpublic final SSLSocketFactory getSocketFactory()
SocketFactory object for this
context.public final SSLServerSocketFactory getServerSocketFactory()
ServerSocketFactory object for
this context.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||