Enum Class AnonymousAllowedLevel
java.lang.Object
java.lang.Enum<AnonymousAllowedLevel>
eu.rarogsoftware.rarog.platform.api.security.anonymous.AnonymousAllowedLevel
- All Implemented Interfaces:
Serializable
,Comparable<AnonymousAllowedLevel>
,Constable
Levels of anonymous access that are determining which endpoints have disabled anonymous access,
when admin disables system-wide anonymous access.
-
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 TypeMethodDescriptionstatic AnonymousAllowedLevel
Returns the enum constant of this class with the specified name.static AnonymousAllowedLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CORE
Endpoints annotated as CORE endpoints will never have disabled anonymous. It's level reserved to endpoints that are necessary for system to work, like `/status` endpoint. Endpoints of this level cannot leak any user data or system configuration that can be considered confidential. -
BASIC
Default level of anonymous access for endpoints. Endpoints of this type provide some functionality that is not necessary for system to work, but disabling them may cause some functionalities or integrations to stop working. Endpoints of this level must strictly control what kind of data they expose. -
OPTIONAL
Endpoints with this level provide functionalities for users that don't have account in system. These endpoints usually expose data that may be undesirable to be exposed when no anonymous users are intended in system. Endpoints of this level are intended to provide functionality for anonymous users and can be safely disabled, or they work correctly for logged-in users.
-
-
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
-