Package fr.paris.lutece.util.signrequest
Enum IPAuthentificator.MODE
- java.lang.Object
-
- java.lang.Enum<IPAuthentificator.MODE>
-
- fr.paris.lutece.util.signrequest.IPAuthentificator.MODE
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IPAuthentificator.MODE>
- Enclosing class:
- IPAuthentificator
public static enum IPAuthentificator.MODE extends java.lang.Enum<IPAuthentificator.MODE>
Enum representing the mode of operation for the authenticator. ALLOW: Only requests from the specified IP addresses are allowed. BLOCK: Requests from the specified IP addresses are blocked.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IPAuthentificator.MODEvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IPAuthentificator.MODE[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALLOW
public static final IPAuthentificator.MODE ALLOW
-
BLOCK
public static final IPAuthentificator.MODE BLOCK
-
-
Method Detail
-
values
public static IPAuthentificator.MODE[] 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 (IPAuthentificator.MODE c : IPAuthentificator.MODE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IPAuthentificator.MODE valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-