public static enum AdminAccessController.Access extends Enum<AdminAccessController.Access>
Some parts of the authentication logic throw an exception if the user cannot be authenticated but there are some places where it just returns. Hence the NONE case.
Modifier and Type | Method and Description |
---|---|
boolean |
isOK() |
static AdminAccessController.Access |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdminAccessController.Access[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdminAccessController.Access FULL
public static final AdminAccessController.Access READONLY
public static final AdminAccessController.Access FORBIDDEN
public static final AdminAccessController.Access NONE
public static AdminAccessController.Access[] values()
for (AdminAccessController.Access c : AdminAccessController.Access.values()) System.out.println(c);
public static AdminAccessController.Access valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isOK()
Copyright © 2019. All rights reserved.