public class CertificateInstaller extends Object
Constructor and Description |
---|
CertificateInstaller(Resource source,
String host,
int port) |
CertificateInstaller(Resource source,
String host,
int port,
char[] passphrase) |
Modifier and Type | Method and Description |
---|---|
IOException |
checkCertificate()
checks if a certificate is installed for given host:port
|
X509Certificate[] |
getCertificates() |
void |
install(int index) |
void |
installAll() |
void |
printCertificates() |
public CertificateInstaller(Resource source, String host, int port) throws IOException, KeyStoreException, GeneralSecurityException
public CertificateInstaller(Resource source, String host, int port, char[] passphrase) throws IOException, KeyStoreException, GeneralSecurityException
public void installAll() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException
public void install(int index) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException
public IOException checkCertificate()
context
- host
- port
- public void printCertificates()
public X509Certificate[] getCertificates()
Copyright © 2015 Lucee