public abstract class SSLContextSpi extends 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,
SecureRandom sr)
Initializes this context.
|
protected abstract SSLSocketFactory engineGetSocketFactory()
SocketFactory
object for this context.SocketFactory
objectIllegalStateException
- if the SSLContextImpl requires initialization and the engineInit()
has not been calledSSLContext.getSocketFactory()
protected abstract void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr) throws KeyManagementException
km
- the sources of authentication keystm
- the sources of peer authentication trust decisionssr
- the source of randomnessKeyManagementException
- if this operation failsSSLContext.init(KeyManager [], TrustManager [], SecureRandom)