railo.runtime.net.http
Class CertificateInstaller

java.lang.Object
  extended by railo.runtime.net.http.CertificateInstaller

public class CertificateInstaller
extends Object


Constructor Summary
CertificateInstaller(Resource source, String host, int port)
           
CertificateInstaller(Resource source, String host, int port, char[] passphrase)
           
 
Method Summary
 IOException checkCertificate()
          checks if a certificate is installed for given host:port
 X509Certificate[] getCertificates()
           
 void install(int index)
           
 void installAll()
           
 void printCertificates()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertificateInstaller

public CertificateInstaller(Resource source,
                            String host,
                            int port)
                     throws IOException,
                            KeyStoreException,
                            GeneralSecurityException
Throws:
IOException
KeyStoreException
GeneralSecurityException

CertificateInstaller

public CertificateInstaller(Resource source,
                            String host,
                            int port,
                            char[] passphrase)
                     throws IOException,
                            KeyStoreException,
                            GeneralSecurityException
Throws:
IOException
KeyStoreException
GeneralSecurityException
Method Detail

installAll

public void installAll()
                throws IOException,
                       KeyStoreException,
                       NoSuchAlgorithmException,
                       CertificateException
Throws:
IOException
KeyStoreException
NoSuchAlgorithmException
CertificateException

install

public void install(int index)
             throws IOException,
                    KeyStoreException,
                    NoSuchAlgorithmException,
                    CertificateException
Throws:
IOException
KeyStoreException
NoSuchAlgorithmException
CertificateException

checkCertificate

public IOException checkCertificate()
checks if a certificate is installed for given host:port

Parameters:
context -
host -
port -
Returns:

printCertificates

public void printCertificates()

getCertificates

public X509Certificate[] getCertificates()


Copyright © 2012 Railo