@Override
public StoreAlias[] aliases() {
Collection<StoreAlias> aliases = new ArrayList<StoreAlias>();
for (Entry<String, Certificate> entry : this.certificateMap.entrySet()) {
aliases.add(new StoreAlias(entry.getKey(), StoreEntryType.CERTIFICATE));
}
for (Entry<String, Identity> entry : this.privateKeyMap.entrySet()) {
aliases.add(new StoreAlias(entry.getKey(), StoreEntryType.PRIVATE_KEY));
}
for (Entry<String, PublicKey> entry : this.publicKeyMap.entrySet()) {
aliases.add(new StoreAlias(entry.getKey(), StoreEntryType.PUBLIC_KEY));
}
for (Entry<String, SecretKey> entry : this.secretKeyMap.entrySet()) {
aliases.add(new StoreAlias(entry.getKey(), StoreEntryType.SECRET_KEY));
}
return CollectionUtils.toArray(aliases, StoreAlias.class);
}