Package javax.net.ssl
Class SSLContextSpi
- java.lang.Object
-
- javax.net.ssl.SSLContextSpi
-
public abstract class SSLContextSpi extends Object
This class defines the Service Provider Interface (SPI) for theSSLContextclass.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.
- Since:
- 1.4
- See Also:
SSLContext
-
-
Constructor Summary
Constructors Constructor Description SSLContextSpi()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract SSLSocketFactoryengineGetSocketFactory()Returns aSocketFactoryobject for this context.protected abstract voidengineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr)Initializes this context.
-
-
-
Method Detail
-
engineInit
protected abstract void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr) throws KeyManagementException
Initializes this context.- Parameters:
km- the sources of authentication keystm- the sources of peer authentication trust decisionssr- the source of randomness- Throws:
KeyManagementException- if this operation fails- See Also:
SSLContext.init(KeyManager [], TrustManager [], SecureRandom)
-
engineGetSocketFactory
protected abstract SSLSocketFactory engineGetSocketFactory()
Returns aSocketFactoryobject for this context.- Returns:
- the
SocketFactoryobject - Throws:
IllegalStateException- if the SSLContextImpl requires initialization and theengineInit()has not been called- See Also:
SSLContext.getSocketFactory()
-
-