This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.net.ssl
class SSLContextSpi

java.lang.Object extended by javax.net.ssl.SSLContextSpi

public abstract class SSLContextSpi
extends Object

This class defines the Service Provider Interface (SPI) for the 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.

See Also (auto-generated):

TrustManagerFactory

SecureRandom

KeyManagerFactory


Constructor Summary

          
 
Method Summary
protected abstract SSLEngine

          Creates a new SSLEngine using this context.
protected abstract SSLEngine
engineCreateSSLEngine(String host, int port)

          Creates a SSLEngine using this context.
protected abstract SSLSessionContext

          Returns a client SSLSessionContext object for this context.
protected abstract SSLSessionContext

          Returns a server SSLSessionContext object for this context.
protected abstract SSLServerSocketFactory

          Returns a ServerSocketFactory object for this context.
protected abstract SSLSocketFactory

          Returns a SocketFactory object for this context.
protected abstract void

          Initializes this context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLContextSpi

public SSLContextSpi()
Method Detail

engineCreateSSLEngine

protected abstract SSLEngine engineCreateSSLEngine()
Creates a new SSLEngine using this context.

Applications using this factory method are providing no hints for an internal session reuse strategy. If hints are desired, {@link #engineCreateSSLEngine(String, int)} should be used instead.

Some cipher suites (such as Kerberos) require remote hostname information, in which case this factory method should not be used.

Returns:
the SSLEngine Object

engineCreateSSLEngine

protected abstract SSLEngine engineCreateSSLEngine(String host,
                                                   int port)
Creates a SSLEngine using this context.

Applications using this factory method are providing hints for an internal session reuse strategy.

Some cipher suites (such as Kerberos) require remote hostname information, in which case peerHost needs to be specified.

Parameters:
host - the non-authoritative name of the host
port - the non-authoritative port
Returns:
the SSLEngine Object

engineGetClientSessionContext

protected abstract SSLSessionContext engineGetClientSessionContext()
Returns a client SSLSessionContext object for this context.

Returns:
the SSLSessionContext object

engineGetServerSessionContext

protected abstract SSLSessionContext engineGetServerSessionContext()
Returns a server SSLSessionContext object for this context.

Returns:
the SSLSessionContext object

engineGetServerSocketFactory

protected abstract SSLServerSocketFactory engineGetServerSocketFactory()
Returns a ServerSocketFactory object for this context.

Returns:
the ServerSocketFactory object

engineGetSocketFactory

protected abstract SSLSocketFactory engineGetSocketFactory()
Returns a SocketFactory object for this context.

Returns:
the SocketFactory object

engineInit

protected abstract void engineInit(KeyManager[] km,
                                   TrustManager[] tm,
                                   SecureRandom sr)
                            throws KeyManagementException
Initializes this context.

Parameters:
km - the sources of authentication keys
tm - the sources of peer authentication trust decisions
sr - the source of randomness
Throws:
KeyManagementException - if this operation fails


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.