org.rhq.enterprise.server.plugins.rhnhosted
Class RHNSSLSocketFactory
java.lang.Object
org.rhq.enterprise.server.plugins.rhnhosted.RHNSSLSocketFactory
public class RHNSSLSocketFactory
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RHNSSLSocketFactory
public RHNSSLSocketFactory()
getSSLSocketFactory
public static SSLSocketFactory getSSLSocketFactory(String certPath)
throws IOException,
GeneralSecurityException
- This method will read in 'certPath' and uses these certs to restrict validation.
- Parameters:
certPath - path to SSL Cert file
- Returns:
- a SSLSocketFactory instance which will restrict validation to SSL certs in 'certPath'
- Throws:
IOException
GeneralSecurityException
getSSLSocketFactory
public static SSLSocketFactory getSSLSocketFactory(List<X509Certificate> sslCerts)
throws IOException,
GeneralSecurityException
- Parameters:
sslCerts - these certs will be used to validate the ssl connection
- Returns:
-
- Throws:
IOException
GeneralSecurityException
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.