Enum EKeyStoreLoadError

  • All Implemented Interfaces:
    com.helger.commons.id.IHasID<String>, com.helger.commons.text.display.IHasDisplayText, com.helger.commons.text.display.IHasDisplayTextWithArgs, Serializable, Comparable<EKeyStoreLoadError>

    public enum EKeyStoreLoadError
    extends Enum<EKeyStoreLoadError>
    implements com.helger.commons.id.IHasID<String>, com.helger.commons.text.display.IHasDisplayTextWithArgs
    Errors that can occur in KeyStoreHelper
    Author:
    Philip Helger
    • Enum Constant Detail

      • KEYSTORE_NO_PATH

        public static final EKeyStoreLoadError KEYSTORE_NO_PATH
        No key store path provided. Parameters: none
      • KEYSTORE_LOAD_ERROR_NON_EXISTING

        public static final EKeyStoreLoadError KEYSTORE_LOAD_ERROR_NON_EXISTING
        Key store not existing. Parameters:
        • KeyStore path
        • Exception text
      • KEYSTORE_INVALID_PASSWORD

        public static final EKeyStoreLoadError KEYSTORE_INVALID_PASSWORD
        Invalid key store password. Parameters:
        • KeyStore path
        • Exception text
      • KEYSTORE_LOAD_ERROR_FORMAT_ERROR

        public static final EKeyStoreLoadError KEYSTORE_LOAD_ERROR_FORMAT_ERROR
        Invalid password or generic error. Parameters:
        • KeyStore path
        • Exception text
      • KEY_NO_ALIAS

        public static final EKeyStoreLoadError KEY_NO_ALIAS
        No alias specified. Parameters:
        • KeyStore path
      • KEY_NO_PASSWORD

        public static final EKeyStoreLoadError KEY_NO_PASSWORD
        No password specified. Parameters:
        • Alias name
        • KeyStore path
      • KEY_INVALID_ALIAS

        public static final EKeyStoreLoadError KEY_INVALID_ALIAS
        Alias does not exist. Parameters:
        • Alias name
        • KeyStore path
      • KEY_INVALID_TYPE

        public static final EKeyStoreLoadError KEY_INVALID_TYPE
        Key is not of expected type. Parameters:
        • Alias name
        • KeyStore path
        • Effective technical type name
      • KEY_INVALID_PASSWORD

        public static final EKeyStoreLoadError KEY_INVALID_PASSWORD
        Invalid password for the key. Parameters:
        • Alias name
        • KeyStore path
        • Exception message
      • KEY_LOAD_ERROR

        public static final EKeyStoreLoadError KEY_LOAD_ERROR
        Generic error loading the key. Parameters:
        • Alias name
        • KeyStore path
        • Exception message
    • Method Detail

      • values

        public static EKeyStoreLoadError[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EKeyStoreLoadError c : EKeyStoreLoadError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EKeyStoreLoadError valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getID

        @Nonnull
        @Nonempty
        public String getID()
        Specified by:
        getID in interface com.helger.commons.id.IHasID<String>
      • getDisplayText

        @Nullable
        public String getDisplayText​(@Nonnull
                                     Locale aContentLocale)
        Specified by:
        getDisplayText in interface com.helger.commons.text.display.IHasDisplayText