FileDocCategorySizeDatePackage
SSLContextSpi.javaAPI DocAndroid 1.5 API4228Wed May 06 22:41:06 BST 2009javax.net.ssl

SSLContextSpi

public abstract class SSLContextSpi extends Object
The Service Provider Interface (SPI) for the {@code SSLContext} class.
since
Android 1.0

Fields Summary
Constructors Summary
public SSLContextSpi()
Creates a new {@code SSLContextSpi} instance.

since
Android 1.0

    
Methods Summary
protected abstract javax.net.ssl.SSLEngineengineCreateSSLEngine(java.lang.String host, int port)
Creates an {@code SSLEngine} instance from this context with the specified hostname and port.

param
host the name of the host
param
port the port
return
an {@code SSLEngine} instance from this context.
throws
UnsupportedOperationException if the provider does not support the operation.
since
Android 1.0

protected abstract javax.net.ssl.SSLEngineengineCreateSSLEngine()
Creates an {@code SSLEngine} instance from this context.

return
an {@code SSLEngine} instance from this context.
throws
UnsupportedOperationException if the provider does not support the operation.
since
Android 1.0

protected abstract javax.net.ssl.SSLSessionContextengineGetClientSessionContext()
Returns the SSL session context that encapsulates the set of SSL sessions that can be used for the client side of the SSL handshake.

return
the SSL client session context for this context or {@code null} if the underlying provider does not provide an implementation of the {@code SSLSessionContext} interface.
since
Android 1.0

protected abstract javax.net.ssl.SSLSessionContextengineGetServerSessionContext()
Returns the SSL session context that encapsulates the set of SSL sessions that can be used for the server side of the SSL handshake.

return
the SSL server session context for this context or {@code null} if the underlying provider does not provide an implementation of the {@code SSLSessionContext} interface.
since
Android 1.0

protected abstract javax.net.ssl.SSLServerSocketFactoryengineGetServerSocketFactory()
Returns a server socket factory for this instance.

return
a server socket factory for this instance.
since
Android 1.0

protected abstract javax.net.ssl.SSLSocketFactoryengineGetSocketFactory()
Returns a socket factory for this instance.

return
a socket factory for this instance.
since
Android 1.0

protected abstract voidengineInit(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom sr)
Initializes this {@code SSLContext} instance. All of the arguments are optional, and the security providers will be searched for the required implementations of the needed algorithms.

param
km the key sources or {@code null}.
param
tm the trust decision sources or {@code null}.
param
sr the randomness source or {@code null.}
throws
KeyManagementException if initializing this instance fails.
since
Android 1.0