com.sun.enterprise.security.store
Class AsadminTruststore
java.lang.Object
com.sun.enterprise.security.store.AsadminTruststore
public class AsadminTruststore
- extends java.lang.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getAsadminTruststore
public static java.io.File getAsadminTruststore()
newInstance
public static AsadminTruststore newInstance()
throws java.security.cert.CertificateException,
java.io.IOException,
java.security.KeyStoreException,
java.security.NoSuchAlgorithmException
- Throws:
java.security.cert.CertificateException
java.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
newInstance
public static AsadminTruststore newInstance(char[] password)
throws java.security.cert.CertificateException,
java.io.IOException,
java.security.KeyStoreException,
java.security.NoSuchAlgorithmException
- Throws:
java.security.cert.CertificateException
java.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
certificateExists
public boolean certificateExists(java.security.cert.Certificate cert)
throws java.security.KeyStoreException
- Throws:
java.security.KeyStoreException
addCertificate
public void addCertificate(java.lang.String alias,
java.security.cert.Certificate cert)
throws java.security.KeyStoreException,
java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException
- Throws:
java.security.KeyStoreException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
writeStore
public void writeStore()
throws java.security.KeyStoreException,
java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException
- Throws:
java.security.KeyStoreException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
Copyright © 2012 GlassFish Community. All Rights Reserved.