Package org.forgerock.openig.filter
Enum CryptoHeaderFilter.Operation
- java.lang.Object
-
- java.lang.Enum<CryptoHeaderFilter.Operation>
-
- org.forgerock.openig.filter.CryptoHeaderFilter.Operation
-
- All Implemented Interfaces:
Serializable
,Comparable<CryptoHeaderFilter.Operation>
- Enclosing class:
- CryptoHeaderFilter
public static enum CryptoHeaderFilter.Operation extends Enum<CryptoHeaderFilter.Operation>
Should the filter encrypt or decrypt the given headers ?
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CryptoHeaderFilter.Operation
valueOf(String name)
Returns the enum constant of this type with the specified name.static CryptoHeaderFilter.Operation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENCRYPT
public static final CryptoHeaderFilter.Operation ENCRYPT
Performs an encryption of the selected headers.
-
DECRYPT
public static final CryptoHeaderFilter.Operation DECRYPT
Perform a decryption of the selected headers. Notice that the decrypted value is a trimmed String using the given charset (UTF-8
by default).
-
-
Method Detail
-
values
public static CryptoHeaderFilter.Operation[] 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 (CryptoHeaderFilter.Operation c : CryptoHeaderFilter.Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CryptoHeaderFilter.Operation 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
-
-