Module crypt.api

Enum Class ExemptionMechanism

java.lang.Object
java.lang.Enum<ExemptionMechanism>
io.github.astrapi69.crypt.api.mechanism.ExemptionMechanism
All Implemented Interfaces:
Mechanism, Serializable, Comparable<ExemptionMechanism>, Constable

public enum ExemptionMechanism extends Enum<ExemptionMechanism> implements Mechanism
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
  • Enum Constant Details

    • KEY_ESCROW

      public static final ExemptionMechanism 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

      public static final ExemptionMechanism 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

      public static final ExemptionMechanism KEY_WEAKENING
      The enum constant KEY_WEAKENING. A method in which a part of the key can be escrowed or recovered.
    • UNKNOWN

      public static final ExemptionMechanism UNKNOWN
      The enum constant 'UNKNOWN' if the exemption mechanism name is unknown
  • Field Details

    • KEY_ESCROW_MECHANISM_NAME

      public static final String KEY_ESCROW_MECHANISM_NAME
      The string constant KEY_ESCROW_MECHANISM_NAME
      See Also:
    • KEY_RECOVERY_MECHANISM_NAME

      public static final String KEY_RECOVERY_MECHANISM_NAME
      The string constant KEY_RECOVERY_MECHANISM_NAME
      See Also:
    • KEY_WEAKENING_MECHANISM_NAME

      public static final String KEY_WEAKENING_MECHANISM_NAME
      The string constant KEY_WEAKENING_MECHANISM_NAME
      See Also:
  • Method Details

    • values

      public static ExemptionMechanism[] 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

      public static ExemptionMechanism valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getMechanism

      public String getMechanism()
      Gets the mechanism
      Specified by:
      getMechanism in interface Mechanism
      Returns:
      the mechanism