Package com.helger.security.keystore
Enum EKeyStoreLoadError
- java.lang.Object
-
- java.lang.Enum<EKeyStoreLoadError>
-
- com.helger.security.keystore.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 inKeyStoreHelper- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEY_INVALID_ALIASAlias does not exist.KEY_INVALID_PASSWORDInvalid password for the key.KEY_INVALID_TYPEKey is not of expected type.KEY_LOAD_ERRORGeneric error loading the key.KEY_NO_ALIASNo alias specified.KEY_NO_PASSWORDNo password specified.KEYSTORE_INVALID_PASSWORDInvalid key store password.KEYSTORE_LOAD_ERROR_FORMAT_ERRORInvalid password or generic error.KEYSTORE_LOAD_ERROR_NON_EXISTINGKey store not existing.KEYSTORE_NO_PATHNo key store path provided.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayText(Locale aContentLocale)StringgetID()static EKeyStoreLoadErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static EKeyStoreLoadError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
-