Interface ApiTokenManager
public interface ApiTokenManager
Manages the API Tokens configured in the system and exposes a method for validating HTTP Requests against API Tokens
configured in the system
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
Context object contains the name of the token associated with an HTTP Request as well as which security levels are granted to the tokenstatic class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceType
static final AccessControlStrategy
static final AccessControlStrategy
static final AccessControlStrategy
-
Method Summary
Modifier and TypeMethodDescriptionvalidateRequest
(RequestContext request) Validate if the given request is authenticated with a valid token, and if so, return the security levels associated with the token.
-
Field Details
-
RESOURCE_TYPE
-
TOKEN_ACCESS
-
TOKEN_READ
-
TOKEN_WRITE
-
-
Method Details
-
validateRequest
Validate if the given request is authenticated with a valid token, and if so, return the security levels associated with the token.
-