com.paypal.base
Class SSLUtil
java.lang.Object
com.paypal.base.SSLUtil
public abstract class SSLUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLUtil
public SSLUtil()
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.