Package org.jboss.security.config
Class ControlFlag
- java.lang.Object
-
- org.jboss.security.config.ControlFlag
-
public class ControlFlag extends Object
Control Flag for module entries- Since:
- Aug 2, 2007
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description static ControlFlag
OPTIONAL
static ControlFlag
REQUIRED
static ControlFlag
REQUISITE
static ControlFlag
SUFFICIENT
-
Constructor Summary
Constructors Constructor Description ControlFlag(String flag)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
String
toString()
Returns the string represented "required", "requisite" etcstatic ControlFlag
valueOf(String flag)
Method that returns the correct Control flag that is associated with the argument flag, which can be (REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL)
-
-
-
Field Detail
-
REQUIRED
public static final ControlFlag REQUIRED
-
REQUISITE
public static final ControlFlag REQUISITE
-
SUFFICIENT
public static final ControlFlag SUFFICIENT
-
OPTIONAL
public static final ControlFlag OPTIONAL
-
-
Constructor Detail
-
ControlFlag
public ControlFlag(String flag)
-
-
Method Detail
-
toString
public String toString()
Returns the string represented "required", "requisite" etc
-
valueOf
public static ControlFlag valueOf(String flag)
Method that returns the correct Control flag that is associated with the argument flag, which can be (REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL)- Parameters:
flag
-- Returns:
- Throws:
IllegalArgumentException
- when flag is different from the four above
-
-