Package com.tailf.dp

Enum Class AuthorizationResult

Object
Enum<AuthorizationResult>
com.tailf.dp.AuthorizationResult
All Implemented Interfaces:
Serializable, Comparable<AuthorizationResult>, Constable

public enum AuthorizationResult extends Enum<AuthorizationResult>
Enum for returning authorization result from authorization callbacks
  • Enum Constant Details

    • ACCEPT

      public static final AuthorizationResult ACCEPT
      The access is allowed. This is a "final verdict", analogous to a "full match" when the AAA rules are used.
    • REJECT

      public static final AuthorizationResult REJECT
      The access is denied.
    • CONTINUE

      public static final AuthorizationResult CONTINUE
      The access is allowed "so far". I.e. access to sub-elements is not necessarily allowed. This result is mainly useful when a checkCommandAccess() callback is called with operation == READ or a checkDataAccess() callback is called with how == INTERMEDIATE.
    • DEFAULT

      public static final AuthorizationResult DEFAULT
      The request should be handled according to the rules configured in the AAA data model.
  • Method Details

    • values

      public static AuthorizationResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AuthorizationResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the int value representation of this authorization result
      Returns:
      int value
    • getType

      public static AuthorizationResult getType(int l)
      Get a DpAuthorizationResult for given int value or null if the int value does not represent a enum.
      Parameters:
      l - int value for this enum
      Returns:
      AuthorizationResult for this int value