Annotation Interface ValidateApiToken


@Target(METHOD) @Retention(RUNTIME) public @interface ValidateApiToken
Annotation used to secure endpoints. Here, secure means to ensure that a valid API-token is provided and, if so, attach the correct User to the request before controller arguments are resolved.
Version:
3.0.5
Author:
Stephen Prizio
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines the minimum role that is required by the api token to interface with whatever endpoint is handling the request.
  • Element Details

    • role

      UserRole role
      Defines the minimum role that is required by the api token to interface with whatever endpoint is handling the request.
      Returns:
      UserRole
      Default:
      TRADER