Add core listener methods for key store creation.
[jkeytool.git] / src / net / pterodactylus / jkeytool / core / CoreListener.java
index 7380649..83c9da0 100644 (file)
@@ -31,20 +31,39 @@ import java.util.EventListener;
 public interface CoreListener extends EventListener {
 
        /**
-        * Notifies all listeners that a keystore was loaded from a file.
+        * 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
-        *            The keystore file
+        *            The key store file
         * @param keyStore
-        *            The loaded keystore
+        *            The loaded key store
         */
        public void keyStoreLoaded(File keyStoreFile, KeyStore keyStore);
 
        /**
-        * Notifies all listeners that a keystore file could not be loaded.
+        * Notifies all listeners that a key store file could not be loaded.
         *
         * @param keyStoreFile
-        *            The keystore file
+        *            The key store file
         */
        public void keyStoreNotLoaded(File keyStoreFile);