Add core listener methods for key store creation.
[jkeytool.git] / src / net / pterodactylus / jkeytool / core / CoreListener.java
index 54c2ae7..83c9da0 100644 (file)
@@ -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