|
|||||||||
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,
Provider provider,
String protocol)
Creates an SSLContext object. |
Method Summary | |
static SSLContext |
getInstance(String protocol)
Generates a SSLContext object that implements the
specified secure socket protocol. |
static SSLContext |
getInstance(String protocol,
Provider provider)
Generates a SSLContext object that implements the
specified secure socket protocol. |
static SSLContext |
getInstance(String protocol,
String provider)
Generates a SSLContext object that implements the
specified secure socket protocol. |
String |
getProtocol()
Returns the protocol name of this SSLContext object. |
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,
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, Provider provider, String protocol)
contextSpi
- the delegateprovider
- the provideralgorithm
- the algorithmMethod Detail |
public static SSLContext getInstance(String protocol) throws NoSuchAlgorithmException
SSLContext
object that implements the
specified secure socket protocol.protocol
- the standard name of the requested protocol.SSLContext
objectpublic static SSLContext getInstance(String protocol, String provider) throws NoSuchAlgorithmException, 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 static SSLContext getInstance(String protocol, Provider provider) throws 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 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 Provider getProvider()
SSLContext
object.SSLContext
objectpublic final void init(KeyManager[] km, TrustManager[] tm, SecureRandom random) throws 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 |