org.rhq.enterprise.server.plugins.rhnhosted
Class RHNSSLSocketFactory

java.lang.Object
  extended by org.rhq.enterprise.server.plugins.rhnhosted.RHNSSLSocketFactory

public class RHNSSLSocketFactory
extends Object


Constructor Summary
RHNSSLSocketFactory()
           
 
Method Summary
static SSLSocketFactory getSSLSocketFactory(List<X509Certificate> sslCerts)
           
static SSLSocketFactory getSSLSocketFactory(String certPath)
          This method will read in 'certPath' and uses these certs to restrict validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RHNSSLSocketFactory

public RHNSSLSocketFactory()
Method Detail

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.