org.wamblee.security.authorization
Enum AuthorizationResult

java.lang.Object
  extended by java.lang.Enum<AuthorizationResult>
      extended by org.wamblee.security.authorization.AuthorizationResult
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AuthorizationResult>

public enum AuthorizationResult
extends java.lang.Enum<AuthorizationResult>

Represents the result of an authorization decision.

Author:
Erik Brakkee

Enum Constant Summary
DENIED
          Access is denied.
GRANTED
          Access is granted.
UNDECIDED
          Access is undecided.
UNSUPPORTED_RESOURCE
          Unsupported resource.
 
Method Summary
static AuthorizationResult valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AuthorizationResult[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GRANTED

public static final AuthorizationResult GRANTED
Access is granted.


DENIED

public static final AuthorizationResult DENIED
Access is denied.


UNDECIDED

public static final AuthorizationResult UNDECIDED
Access is undecided.


UNSUPPORTED_RESOURCE

public static final AuthorizationResult UNSUPPORTED_RESOURCE
Unsupported resource.

Method Detail

values

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

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

valueOf

public static AuthorizationResult 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


Copyright © 2022. All Rights Reserved.