com.sun.enterprise.security.store
Class AsadminTruststore

java.lang.Object
  extended by 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
 void addCertificate(String alias, Certificate cert)
           
 boolean certificateExists(Certificate cert)
           
static File getAsadminTruststore()
           
static AsadminTruststore newInstance()
           
static AsadminTruststore newInstance(char[] password)
           
 void writeStore()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAsadminTruststore

public static File getAsadminTruststore()

newInstance

public static AsadminTruststore newInstance()
                                     throws CertificateException,
                                            IOException,
                                            KeyStoreException,
                                            NoSuchAlgorithmException
Throws:
CertificateException
IOException
KeyStoreException
NoSuchAlgorithmException

newInstance

public static AsadminTruststore newInstance(char[] password)
                                     throws CertificateException,
                                            IOException,
                                            KeyStoreException,
                                            NoSuchAlgorithmException
Throws:
CertificateException
IOException
KeyStoreException
NoSuchAlgorithmException

certificateExists

public boolean certificateExists(Certificate cert)
                          throws KeyStoreException
Throws:
KeyStoreException

addCertificate

public void addCertificate(String alias,
                           Certificate cert)
                    throws KeyStoreException,
                           IOException,
                           NoSuchAlgorithmException,
                           CertificateException
Throws:
KeyStoreException
IOException
NoSuchAlgorithmException
CertificateException

writeStore

public void writeStore()
                throws KeyStoreException,
                       IOException,
                       NoSuchAlgorithmException,
                       CertificateException
Throws:
KeyStoreException
IOException
NoSuchAlgorithmException
CertificateException


Copyright © 2012 GlassFish Community. All Rights Reserved.