- All Implemented Interfaces:
Mechanism
,Serializable
,Comparable<ExemptionMechanism>
,Constable
The enum
ExemptionMechanism
defines the exemption mechanism names that can be specified
in the permission policy file that accompanies an application considered “exempt” from
cryptographic restrictions. For more info see:
https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#exemption-mechanisms-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe enum constant KEY_ESCROW.The enum constant KEY_RECOVERY.The enum constant KEY_WEAKENING.The enum constant 'UNKNOWN' if the exemption mechanism name is unknown -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The string constant KEY_ESCROW_MECHANISM_NAMEstatic final String
The string constant KEY_RECOVERY_MECHANISM_NAMEstatic final String
The string constant KEY_WEAKENING_MECHANISM_NAMEFields inherited from interface io.github.astrapi69.crypt.api.mechanism.Mechanism
UNKNOWN_MECHANISM_NAME
-
Method Summary
Modifier and TypeMethodDescriptionGets the mechanismstatic ExemptionMechanism
Returns the enum constant of this class with the specified name.static ExemptionMechanism[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KEY_ESCROW
The enum constant KEY_ESCROW. An encryption system with a backup decryption capability that allows authorized persons (users, officers of an organization, and government officials), under certain prescribed conditions, to decrypt ciphertext with the help of information supplied by one or more trusted parties who hold special data recovery keys. -
KEY_RECOVERY
The enum constant KEY_RECOVERY. A method of obtaining the secret key used to lock encrypted data. One use is as a means of providing fail-safe access to a corporation’s own encrypted information in times of disaster. -
KEY_WEAKENING
The enum constant KEY_WEAKENING. A method in which a part of the key can be escrowed or recovered. -
UNKNOWN
The enum constant 'UNKNOWN' if the exemption mechanism name is unknown
-
-
Field Details
-
KEY_ESCROW_MECHANISM_NAME
The string constant KEY_ESCROW_MECHANISM_NAME- See Also:
-
KEY_RECOVERY_MECHANISM_NAME
The string constant KEY_RECOVERY_MECHANISM_NAME- See Also:
-
KEY_WEAKENING_MECHANISM_NAME
The string constant KEY_WEAKENING_MECHANISM_NAME- See Also:
-
-
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
-
getMechanism
Gets the mechanism- Specified by:
getMechanism
in interfaceMechanism
- Returns:
- the mechanism
-