|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.net.ssl.SSLContext
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.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 algorithmMethod 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
objectpublic 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
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
objectpublic final void init(KeyManager[] km, TrustManager[] tm, java.security.SecureRandom random) throws java.security.KeyManagementException
km
- the sources of authentication keystm
- the sources of peer authentication trust decisionsrandom
- the source of randomness for this generatorpublic 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 |