Package edu.iu.crypt

Enum Class WebEncryption.Encryption

java.lang.Object
java.lang.Enum<WebEncryption.Encryption>
edu.iu.crypt.WebEncryption.Encryption
All Implemented Interfaces:
Serializable, Comparable<WebEncryption.Encryption>, Constable
Enclosing interface:
WebEncryption

public static enum WebEncryption.Encryption extends Enum<WebEncryption.Encryption>
Enumerates content encryption algorithms.
  • Enum Constant Details

  • Field Details

    • enc

      public final String enc
      JOSE enc attribute value.
    • size

      public final int size
      CEK size, in bits.
    • algorithm

      public final String algorithm
      JCE Cipher algorithm.
    • mac

      public final String mac
      JCE MAC algorithm.
  • Method Details

    • values

      public static WebEncryption.Encryption[] 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 WebEncryption.Encryption 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
    • from

      public static WebEncryption.Encryption from(String enc)
      Selects encryption by JOSE enc parameter value.
      Parameters:
      enc - JOSE parameter value
      Returns:
      encryption