org.apache.http.nio.conn.ssl
Class SSLLayeringStrategy

java.lang.Object
  extended by org.apache.http.nio.conn.ssl.SSLLayeringStrategy
All Implemented Interfaces:
LayeringStrategy

public class SSLLayeringStrategy
extends Object
implements LayeringStrategy


Field Summary
static String SSL
           
static String SSLV2
           
static String TLS
           
 
Constructor Summary
SSLLayeringStrategy(KeyStore truststore)
           
SSLLayeringStrategy(KeyStore keystore, String keystorePassword)
           
SSLLayeringStrategy(KeyStore keystore, String keystorePassword, KeyStore truststore)
           
SSLLayeringStrategy(SSLContext sslContext)
           
SSLLayeringStrategy(SSLContext sslContext, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
           
SSLLayeringStrategy(String algorithm, KeyStore keystore, String keystorePassword, KeyStore truststore, SecureRandom random, org.apache.http.conn.ssl.TrustStrategy trustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
           
SSLLayeringStrategy(String algorithm, KeyStore keystore, String keystorePassword, KeyStore truststore, SecureRandom random, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
           
SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy)
           
SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
           
 
Method Summary
static SSLLayeringStrategy getDefaultStrategy()
           
protected  void initializeEngine(SSLEngine engine)
           
 boolean isSecure()
           
 org.apache.http.nio.reactor.ssl.SSLIOSession layer(org.apache.http.nio.reactor.IOSession iosession)
           
protected  void verifySession(org.apache.http.nio.reactor.IOSession iosession, SSLSession sslsession)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TLS

public static final String TLS
See Also:
Constant Field Values

SSL

public static final String SSL
See Also:
Constant Field Values

SSLV2

public static final String SSLV2
See Also:
Constant Field Values
Constructor Detail

SSLLayeringStrategy

public SSLLayeringStrategy(String algorithm,
                           KeyStore keystore,
                           String keystorePassword,
                           KeyStore truststore,
                           SecureRandom random,
                           org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
                    throws NoSuchAlgorithmException,
                           KeyManagementException,
                           KeyStoreException,
                           UnrecoverableKeyException
Throws:
NoSuchAlgorithmException
KeyManagementException
KeyStoreException
UnrecoverableKeyException

SSLLayeringStrategy

public SSLLayeringStrategy(String algorithm,
                           KeyStore keystore,
                           String keystorePassword,
                           KeyStore truststore,
                           SecureRandom random,
                           org.apache.http.conn.ssl.TrustStrategy trustStrategy,
                           org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
                    throws NoSuchAlgorithmException,
                           KeyManagementException,
                           KeyStoreException,
                           UnrecoverableKeyException
Throws:
NoSuchAlgorithmException
KeyManagementException
KeyStoreException
UnrecoverableKeyException

SSLLayeringStrategy

public SSLLayeringStrategy(KeyStore keystore,
                           String keystorePassword,
                           KeyStore truststore)
                    throws NoSuchAlgorithmException,
                           KeyManagementException,
                           KeyStoreException,
                           UnrecoverableKeyException
Throws:
NoSuchAlgorithmException
KeyManagementException
KeyStoreException
UnrecoverableKeyException

SSLLayeringStrategy

public SSLLayeringStrategy(KeyStore keystore,
                           String keystorePassword)
                    throws NoSuchAlgorithmException,
                           KeyManagementException,
                           KeyStoreException,
                           UnrecoverableKeyException
Throws:
NoSuchAlgorithmException
KeyManagementException
KeyStoreException
UnrecoverableKeyException

SSLLayeringStrategy

public SSLLayeringStrategy(KeyStore truststore)
                    throws NoSuchAlgorithmException,
                           KeyManagementException,
                           KeyStoreException,
                           UnrecoverableKeyException
Throws:
NoSuchAlgorithmException
KeyManagementException
KeyStoreException
UnrecoverableKeyException

SSLLayeringStrategy

public SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy,
                           org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
                    throws NoSuchAlgorithmException,
                           KeyManagementException,
                           KeyStoreException,
                           UnrecoverableKeyException
Throws:
NoSuchAlgorithmException
KeyManagementException
KeyStoreException
UnrecoverableKeyException

SSLLayeringStrategy

public SSLLayeringStrategy(org.apache.http.conn.ssl.TrustStrategy trustStrategy)
                    throws NoSuchAlgorithmException,
                           KeyManagementException,
                           KeyStoreException,
                           UnrecoverableKeyException
Throws:
NoSuchAlgorithmException
KeyManagementException
KeyStoreException
UnrecoverableKeyException

SSLLayeringStrategy

public SSLLayeringStrategy(SSLContext sslContext,
                           org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)

SSLLayeringStrategy

public SSLLayeringStrategy(SSLContext sslContext)
Method Detail

getDefaultStrategy

public static SSLLayeringStrategy getDefaultStrategy()

isSecure

public boolean isSecure()
Specified by:
isSecure in interface LayeringStrategy

layer

public org.apache.http.nio.reactor.ssl.SSLIOSession layer(org.apache.http.nio.reactor.IOSession iosession)
Specified by:
layer in interface LayeringStrategy

initializeEngine

protected void initializeEngine(SSLEngine engine)

verifySession

protected void verifySession(org.apache.http.nio.reactor.IOSession iosession,
                             SSLSession sslsession)
                      throws SSLException
Throws:
SSLException


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.