Enum CaptchaProvider
- java.lang.Object
-
- java.lang.Enum<CaptchaProvider>
-
- org.cyclos.model.system.configurations.CaptchaProvider
-
- All Implemented Interfaces:
Serializable,Comparable<CaptchaProvider>,HasMessageKey
public enum CaptchaProvider extends Enum<CaptchaProvider> implements HasMessageKey
Identifies a CAPTCHA provider
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNALThe internally generated captchas using the Kaptcha libraryRECAPTCHA_V2reCAPTCHA V2.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()booleanhasChallenge()static CaptchaProvidervalueOf(String name)Returns the enum constant of this type with the specified name.static CaptchaProvider[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTERNAL
public static final CaptchaProvider INTERNAL
The internally generated captchas using the Kaptcha library
-
RECAPTCHA_V2
public static final CaptchaProvider RECAPTCHA_V2
reCAPTCHA V2.- See Also:
- docs
-
-
Method Detail
-
values
public static CaptchaProvider[] 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 (CaptchaProvider c : CaptchaProvider.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CaptchaProvider 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
hasChallenge
public boolean hasChallenge()
-
-