public abstract class SSLContextSpi
extends java.lang.Object
SSLContext class.
All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply the implementation of a particular SSL context.
SSLContext| Constructor and Description |
|---|
SSLContextSpi() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SSLSocketFactory |
engineGetSocketFactory()
Returns a
SocketFactory object for this context. |
protected abstract void |
engineInit(KeyManager[] km,
TrustManager[] tm,
java.security.SecureRandom sr)
Initializes this context.
|
protected abstract void engineInit(KeyManager[] km, TrustManager[] tm, java.security.SecureRandom sr) throws java.security.KeyManagementException
km - the sources of authentication keystm - the sources of peer authentication trust decisionssr - the source of randomnessjava.security.KeyManagementException - if this operation failsSSLContext.init(KeyManager [], TrustManager [], SecureRandom)protected abstract SSLSocketFactory engineGetSocketFactory()
SocketFactory object for this context.SocketFactory objectjava.lang.IllegalStateException - if the SSLContextImpl requires initialization and the engineInit() has not been calledSSLContext.getSocketFactory()