Enum GoogleMfaAuthModuleConf.CryptoStrategy
- java.lang.Object
-
- java.lang.Enum<GoogleMfaAuthModuleConf.CryptoStrategy>
-
- org.apache.syncope.common.lib.auth.GoogleMfaAuthModuleConf.CryptoStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<GoogleMfaAuthModuleConf.CryptoStrategy>
- Enclosing class:
- GoogleMfaAuthModuleConf
public static enum GoogleMfaAuthModuleConf.CryptoStrategy extends Enum<GoogleMfaAuthModuleConf.CryptoStrategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENCRYPT_AND_SIGN
Encrypt the value first, and then sign.SIGN_AND_ENCRYPT
Sign the value first, and then encrypt.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GoogleMfaAuthModuleConf.CryptoStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static GoogleMfaAuthModuleConf.CryptoStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENCRYPT_AND_SIGN
public static final GoogleMfaAuthModuleConf.CryptoStrategy ENCRYPT_AND_SIGN
Encrypt the value first, and then sign.
-
SIGN_AND_ENCRYPT
public static final GoogleMfaAuthModuleConf.CryptoStrategy SIGN_AND_ENCRYPT
Sign the value first, and then encrypt.
-
-
Method Detail
-
values
public static GoogleMfaAuthModuleConf.CryptoStrategy[] 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 (GoogleMfaAuthModuleConf.CryptoStrategy c : GoogleMfaAuthModuleConf.CryptoStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GoogleMfaAuthModuleConf.CryptoStrategy 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
-
-