org.apache.abdera.examples.appclient
Class SSLExample

java.lang.Object
  extended by org.apache.abdera.examples.appclient.SSLExample

public class SSLExample
extends Object


Constructor Summary
SSLExample()
           
 
Method Summary
static void clientAuth()
          You can provide your own secure socket factory to support additional use cases, such as using client certs for auth
static void customTrustManager()
          You can provide your own X509TrustManager implementation
static void defaultTrustManager()
          Abdera's default trust manager is registered on port 443 and accepts all server certificates and issuers.
static void defaultTrustManager2()
          The default trust manager can be registered for additional ports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLExample

public SSLExample()
Method Detail

defaultTrustManager

public static void defaultTrustManager()
                                throws Exception
Abdera's default trust manager is registered on port 443 and accepts all server certificates and issuers.

Throws:
Exception

defaultTrustManager2

public static void defaultTrustManager2()
                                 throws Exception
The default trust manager can be registered for additional ports

Throws:
Exception

customTrustManager

public static void customTrustManager()
                               throws Exception
You can provide your own X509TrustManager implementation

Throws:
Exception

clientAuth

public static void clientAuth()
                       throws Exception
You can provide your own secure socket factory to support additional use cases, such as using client certs for auth

Throws:
Exception


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.