/** * Returns the creation date of the entry identified by the given alias. * * @param alias the alias name * @return the creation date of this entry, or null if the given alias does not exist */ public Date engineGetCreationDate(String alias) { AbstractMap.SimpleEntry<String, Collection<KeyStore>> pair = getKeystoresForReading(alias); Date date = null; try { String entryAlias = pair.getKey(); for (KeyStore keystore : pair.getValue()) { date = keystore.getCreationDate(entryAlias); if (date != null) { break; } } } catch (KeyStoreException e) { throw new IllegalStateException(e); } return date; }