Enum Class ContentEncryptionAlgorithms

java.lang.Object
java.lang.Enum<ContentEncryptionAlgorithms>
org.webpki.crypto.ContentEncryptionAlgorithms
All Implemented Interfaces:
Serializable, Comparable<ContentEncryptionAlgorithms>, Constable

public enum ContentEncryptionAlgorithms extends Enum<ContentEncryptionAlgorithms>
JWE and COSE content encryption algorithms.
  • Enum Constant Details

  • Method Details

    • values

      public static ContentEncryptionAlgorithms[] 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 ContentEncryptionAlgorithms 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
    • getKeyLength

      public int getKeyLength()
    • getIvLength

      public int getIvLength()
    • getTagLength

      public int getTagLength()
    • getJoseAlgorithmId

      public String getJoseAlgorithmId()
    • getCoseAlgorithmId

      public int getCoseAlgorithmId()
    • getAlgorithmFromId

      public static ContentEncryptionAlgorithms getAlgorithmFromId(String joseAlgorithmId)
    • getAlgorithmFromId

      public static ContentEncryptionAlgorithms getAlgorithmFromId(int coseAlgorithmId)