Enum PublicKeyUse
- java.lang.Object
-
- java.lang.Enum<PublicKeyUse>
-
- org.apache.cxf.rs.security.jose.jwk.PublicKeyUse
-
- All Implemented Interfaces:
Serializable,Comparable<PublicKeyUse>
public enum PublicKeyUse extends Enum<PublicKeyUse>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeyUsegetPublicKeyUse(String use)StringtoString()static PublicKeyUsevalueOf(String name)Returns the enum constant of this type with the specified name.static PublicKeyUse[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIGN
public static final PublicKeyUse SIGN
-
ENCRYPT
public static final PublicKeyUse ENCRYPT
-
-
Method Detail
-
values
public static PublicKeyUse[] 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 (PublicKeyUse c : PublicKeyUse.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PublicKeyUse 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
-
getPublicKeyUse
public static PublicKeyUse getPublicKeyUse(String use)
-
toString
public String toString()
- Overrides:
toStringin classEnum<PublicKeyUse>
-
-