Class AsadminTruststore
java.lang.Object
com.sun.enterprise.security.store.AsadminTruststore
This class implements an adapter for password manipulation a JCEKS.
This class delegates the work of actually opening the trust store to AsadminSecurityUtil.
- Author:
- Shing Wai Chan
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCertificate(String alias, Certificate cert) booleancertificateExists(Certificate cert) static Filestatic AsadminTruststorestatic AsadminTruststorenewInstance(char[] password) void
-
Method Details
-
getAsadminTruststore
-
newInstance
public static AsadminTruststore newInstance() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException -
newInstance
public static AsadminTruststore newInstance(char[] password) throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException -
certificateExists
- Throws:
KeyStoreException
-
addCertificate
public void addCertificate(String alias, Certificate cert) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException -
writeStore
public void writeStore() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException
-