Class AsadminTruststore
- java.lang.Object
-
- com.sun.enterprise.security.store.AsadminTruststore
-
public class AsadminTruststore extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCertificate(String alias, Certificate cert)
boolean
certificateExists(Certificate cert)
static File
getAsadminTruststore()
static AsadminTruststore
newInstance()
static AsadminTruststore
newInstance(char[] password)
void
writeStore()
-
-
-
Method Detail
-
getAsadminTruststore
public static File getAsadminTruststore()
-
newInstance
public static AsadminTruststore newInstance()
-
newInstance
public static AsadminTruststore newInstance(char[] password)
-
certificateExists
public boolean certificateExists(Certificate cert) throws KeyStoreException
- Throws:
KeyStoreException
-
addCertificate
public void addCertificate(String alias, Certificate cert) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException
-
writeStore
public void writeStore() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException
-
-