X-Git-Url: https://git.pterodactylus.net/?p=jkeytool.git;a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjkeytool%2Fcore%2FCoreListener.java;h=83c9da0cd5538e4e57a235c2e7ceaed8ac803323;hp=7380649ec62921e4c91f43481aa71b728125ef1a;hb=b2de33372530a2c274df47cbd60e46c29d3dbdd6;hpb=fad6b0840a353354d7f56d4b59acaf2517a2b288 diff --git a/src/net/pterodactylus/jkeytool/core/CoreListener.java b/src/net/pterodactylus/jkeytool/core/CoreListener.java index 7380649..83c9da0 100644 --- a/src/net/pterodactylus/jkeytool/core/CoreListener.java +++ b/src/net/pterodactylus/jkeytool/core/CoreListener.java @@ -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);