Build 1.0_r1(from source)

javax.net.ssl
Class SSLContext

java.lang.Object
  extended by javax.net.ssl.SSLContext
Direct Known Subclasses:
ContextImpl

public class SSLContext
extends Object


Constructor Summary
protected SSLContext(SSLContextSpi contextSpi, Provider provider, String protocol)
           
 
Method Summary
 SSLEngine createSSLEngine()
           
 SSLEngine createSSLEngine(String peerHost, int peerPort)
           
 SSLSessionContext getClientSessionContext()
           
static SSLContext getInstance(String protocol)
           
static SSLContext getInstance(String protocol, Provider provider)
           
static SSLContext getInstance(String protocol, String provider)
           
 String getProtocol()
           
 Provider getProvider()
           
 SSLSessionContext getServerSessionContext()
           
 SSLServerSocketFactory getServerSocketFactory()
           
 SSLSocketFactory getSocketFactory()
           
 void init(KeyManager[] km, TrustManager[] tm, SecureRandom sr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLContext

protected SSLContext(SSLContextSpi contextSpi,
                     Provider provider,
                     String protocol)
Method Detail

getInstance

public static SSLContext getInstance(String protocol)
                              throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getInstance

public static SSLContext getInstance(String protocol,
                                     String provider)
                              throws NoSuchAlgorithmException,
                                     NoSuchProviderException
Throws:
NoSuchAlgorithmException
NoSuchProviderException

getInstance

public static SSLContext getInstance(String protocol,
                                     Provider provider)
                              throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getProtocol

public final String getProtocol()

getProvider

public final Provider getProvider()

init

public final void init(KeyManager[] km,
                       TrustManager[] tm,
                       SecureRandom sr)
                throws KeyManagementException
Throws:
KeyManagementException

getSocketFactory

public final SSLSocketFactory getSocketFactory()

getServerSocketFactory

public final SSLServerSocketFactory getServerSocketFactory()

createSSLEngine

public final SSLEngine createSSLEngine()

createSSLEngine

public final SSLEngine createSSLEngine(String peerHost,
                                       int peerPort)

getServerSessionContext

public final SSLSessionContext getServerSessionContext()

getClientSessionContext

public final SSLSessionContext getClientSessionContext()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature