Enum JWEEnc

    • Enum Constant Detail

      • A128GCM

        public static final JWEEnc A128GCM
        "A128GCM" (4); AES GCM using 128 bit key.
      • A192GCM

        public static final JWEEnc A192GCM
        "A192GCM" (5); AES GCM using 192 bit key.
      • A256GCM

        public static final JWEEnc A256GCM
        "A256GCM" (6); AES GCM using 256 bit key.
    • Method Detail

      • values

        public static JWEEnc[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JWEEnc c : JWEEnc.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JWEEnc valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public short getValue()
        Get the integer representation of this enum instance.
      • getByValue

        public static JWEEnc getByValue​(short value)
        Find an instance of this enum by a value.
        value - The integer representation of the instance to find.
        An instance of this enum, or null if not found.
      • parse

        public static JWEEnc parse​(String alg)
        Convert String to JWEEnc.
        alg - Algorithm name. For example, "A128CBC-HS256".
        JWEEnc instance, or null.
      • toArray

        public static JWEEnc[] toArray​(int bits)