Enum KeyOperation
- java.lang.Object
-
- java.lang.Enum<KeyOperation>
-
- org.apache.cxf.rs.security.jose.jwk.KeyOperation
-
- All Implemented Interfaces:
Serializable,Comparable<KeyOperation>
public enum KeyOperation extends Enum<KeyOperation>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyOperationgetKeyOperation(String oper)StringtoString()static KeyOperationvalueOf(String name)Returns the enum constant of this type with the specified name.static KeyOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIGN
public static final KeyOperation SIGN
-
VERIFY
public static final KeyOperation VERIFY
-
ENCRYPT
public static final KeyOperation ENCRYPT
-
DECRYPT
public static final KeyOperation DECRYPT
-
WRAPKEY
public static final KeyOperation WRAPKEY
-
UNWRAPKEY
public static final KeyOperation UNWRAPKEY
-
DERIVEKEY
public static final KeyOperation DERIVEKEY
-
DERIVEBITS
public static final KeyOperation DERIVEBITS
-
-
Method Detail
-
values
public static KeyOperation[] 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 (KeyOperation c : KeyOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyOperation 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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getKeyOperation
public static KeyOperation getKeyOperation(String oper)
-
toString
public String toString()
- Overrides:
toStringin classEnum<KeyOperation>
-
-