public class AsadminTruststore extends Object
This class delegates the work of actually opening the trust store to AsadminSecurityUtil.
| Modifier and Type | Method and Description |
|---|---|
void |
addCertificate(String alias,
Certificate cert) |
boolean |
certificateExists(Certificate cert) |
static File |
getAsadminTruststore() |
static AsadminTruststore |
newInstance() |
static AsadminTruststore |
newInstance(char[] password) |
void |
writeStore() |
public static File getAsadminTruststore()
public static AsadminTruststore newInstance() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException
public static AsadminTruststore newInstance(char[] password) throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException
public boolean certificateExists(Certificate cert) throws KeyStoreException
KeyStoreExceptionpublic void addCertificate(String alias, Certificate cert) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException
public void writeStore()
throws KeyStoreException,
IOException,
NoSuchAlgorithmException,
CertificateException
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.