From: David ‘Bombe’ Roden Date: Mon, 19 Jan 2009 22:40:35 +0000 (+0100) Subject: Add core listener methods for key store creation. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b2de33372530a2c274df47cbd60e46c29d3dbdd6;p=jkeytool.git Add core listener methods for key store creation. --- diff --git a/src/net/pterodactylus/jkeytool/core/CoreListener.java b/src/net/pterodactylus/jkeytool/core/CoreListener.java index 54c2ae7..83c9da0 100644 --- a/src/net/pterodactylus/jkeytool/core/CoreListener.java +++ b/src/net/pterodactylus/jkeytool/core/CoreListener.java @@ -31,6 +31,25 @@ import java.util.EventListener; public interface CoreListener extends EventListener { /** + * Notifies all listener that a new key store was created. + * + * @param keyStore + * The key store that was created + */ + public void keyStoreCreated(KeyStore keyStore); + + /** + * Notifies all listeners that a key store of the given type could not be + * created. + * + * @param keyStoreType + * The type of the key store that should be created + * @param reason + * The reason why the key store could not be created + */ + public void keyStoreNotCreated(String keyStoreType, Throwable reason); + + /** * Notifies all listeners that a key store was loaded from a file. * * @param keyStoreFile diff --git a/src/net/pterodactylus/jkeytool/core/CoreListenerSupport.java b/src/net/pterodactylus/jkeytool/core/CoreListenerSupport.java index 58501fb..1b3dbe5 100644 --- a/src/net/pterodactylus/jkeytool/core/CoreListenerSupport.java +++ b/src/net/pterodactylus/jkeytool/core/CoreListenerSupport.java @@ -46,6 +46,33 @@ public class CoreListenerSupport extends AbstractListenerSupport