Enum Class KeyImportException.Reason
- All Implemented Interfaces:
Serializable, Comparable<KeyImportException.Reason>, Constable
- Enclosing class:
KeyImportException
Fixed reasons; later versions may add reasons, so application switches need a default branch.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe original monotonic budget is exhausted.The calling thread remains interrupted.The input exceeds the fixed representation ceiling.The probe signature does not agree with the checked public key.The decoded key fails the selected strength or point policy.Armor, Base64 or a selected key structure is malformed or noncanonical.A trusted synchronous provider cannot complete the operation.The algorithm, parameters, label or container profile is not selected. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyImportException.ReasonReturns the enum constant of this class with the specified name.static KeyImportException.Reason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INPUT_TOO_LARGE
The input exceeds the fixed representation ceiling. -
MALFORMED_INPUT
Armor, Base64 or a selected key structure is malformed or noncanonical. -
UNSUPPORTED_KEY
The algorithm, parameters, label or container profile is not selected. -
KEY_REJECTED
The decoded key fails the selected strength or point policy. -
KEY_PAIR_MISMATCH
The probe signature does not agree with the checked public key. -
OPERATION_UNAVAILABLE
A trusted synchronous provider cannot complete the operation. -
BUDGET_EXHAUSTED
The original monotonic budget is exhausted. -
CANCELLED
The calling thread remains interrupted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-