com.paypal.base
Class SSLUtil

java.lang.Object
  extended by com.paypal.base.SSLUtil

public abstract class SSLUtil
extends Object


Constructor Summary
SSLUtil()
           
 
Method Summary
static SSLContext getSSLContext(KeyManager[] keymanagers)
          Returns a SSLContext
static SSLContext setupClientSSL(String certPath, String certPassword)
          Create a SSLContext with provided client certificate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLUtil

public SSLUtil()
Method Detail

getSSLContext

public static SSLContext getSSLContext(KeyManager[] keymanagers)
                                throws SSLConfigurationException
Returns a SSLContext

Parameters:
keymanagers - KeyManager[] The key managers
Returns:
SSLContext with proper client certificate
Throws:
SSLConfigurationException
IOException - if an IOException occurs

setupClientSSL

public static SSLContext setupClientSSL(String certPath,
                                        String certPassword)
                                 throws SSLConfigurationException
Create a SSLContext with provided client certificate

Parameters:
certPath -
certPassword -
Returns:
SSLContext
Throws:
SSLConfigurationException


Copyright © 2015. All Rights Reserved.