Package org.glassfish.internal.api
Enum Class AdminAccessController.Access
java.lang.Object
java.lang.Enum<AdminAccessController.Access>
org.glassfish.internal.api.AdminAccessController.Access
- All Implemented Interfaces:
Serializable,Comparable<AdminAccessController.Access>,Constable
- Enclosing interface:
AdminAccessController
Represents the possible types of access granted as the result of
logging in as an admin user.
- FULL - the connection should be permitted full admin access, including the ability to change the configuration
- READONLY - the connection should be permitted read but not write access
- FORBIDDEN - the connection is rejected because it is remote, secure admin is not enabled, and the connection is not from the DAS to an instance
- NONE - no access permitted
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanisOK()static AdminAccessController.AccessReturns the enum constant of this class with the specified name.static AdminAccessController.Access[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FULL
-
READONLY
-
FORBIDDEN
-
NONE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isOK
public boolean isOK()
-