try {
Enumeration<String> aliases = this.keyStore.aliases();
List<StoreAlias> list = new ArrayList<StoreAlias>();
while (aliases.hasMoreElements()) {
String alias = aliases.nextElement();
StoreEntryType type = null;
if (this.keyStore.isCertificateEntry(alias)) {
type = StoreEntryType.CERTIFICATE;
} else if (this.keyStore.entryInstanceOf(alias, java.security.KeyStore.PrivateKeyEntry.class)) {
type = StoreEntryType.PRIVATE_KEY;
} else if (this.keyStore.entryInstanceOf(alias, java.security.KeyStore.SecretKeyEntry.class)) {