public Collection<String> listCerts() throws KeyStoreException {
  Collection<String> certAlias=new ArrayList<String>();
  for (Enumeration<String> e=_keyStore.aliases(); e.hasMoreElements(); ) {
    String s=e.nextElement();
    certAlias.add(s);
  }
  return certAlias;
}

public Collection < String > listCerts ( ) throws KeyStoreException { Collection < String > certAlias = new ArrayList < String > ( ) ; for ( Enumeration < String > e = _keyStore . aliases ( ) ; e . hasMoreElements ( ) ; ) { String s = e . nextElement ( ) ; certAlias . add ( s ) ; } return certAlias ; }
list certs inside the keystore .
