use of org.jcryptool.crypto.keystore.descriptors.interfaces.IContactDescriptor in project core by jcryptool.
the class ContactManager method addSecretKey.
public void addSecretKey(IKeyStoreAlias alias) {
// $NON-NLS-1$
LogUtil.logInfo("Adding secret key " + alias.getAliasString());
if (contactExists(alias.getContactName())) {
contactsDesc.get(alias.getContactName()).addSecretKey(alias);
} else {
IContactDescriptor contact = newContact(new Contact(alias.getContactName(), null, null, null, null));
contact.addSecretKey(alias);
}
notifyListeners();
}
Aggregations