org.openliberty.openaz.pep
Enum PepResponseFactory.Behavior

java.lang.Object
  extended by java.lang.Enum<PepResponseFactory.Behavior>
      extended by org.openliberty.openaz.pep.PepResponseFactory.Behavior
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PepResponseFactory.Behavior>
Enclosing class:
PepResponseFactory

public static enum PepResponseFactory.Behavior
extends java.lang.Enum<PepResponseFactory.Behavior>

An enum containing an enumerated list of behavior options.


Enum Constant Summary
RETURN_NO
          The behavior is to disallow (Deny) access by returning false when the condition for which this behavior is assigned occurs
RETURN_YES
          The behavior is to allow (Permit) access by returning true when the condition for which this behavior is assigned occurs
THROW_EXCEPTION
          The behavior is to disallow (Deny) access by throwing a PepException when the condition for which this behavior is assigned occurs
 
Method Summary
static PepResponseFactory.Behavior valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PepResponseFactory.Behavior[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RETURN_YES

public static final PepResponseFactory.Behavior RETURN_YES
The behavior is to allow (Permit) access by returning true when the condition for which this behavior is assigned occurs


RETURN_NO

public static final PepResponseFactory.Behavior RETURN_NO
The behavior is to disallow (Deny) access by returning false when the condition for which this behavior is assigned occurs


THROW_EXCEPTION

public static final PepResponseFactory.Behavior THROW_EXCEPTION
The behavior is to disallow (Deny) access by throwing a PepException when the condition for which this behavior is assigned occurs

Method Detail

values

public static PepResponseFactory.Behavior[] 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 (PepResponseFactory.Behavior c : PepResponseFactory.Behavior.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PepResponseFactory.Behavior 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 name
java.lang.NullPointerException - if the argument is null