Class ApiKeyRequestContext

java.lang.Object
org.rostore.service.apikey.ApiKeyRequestContext

@RequestScoped public class ApiKeyRequestContext extends Object
Class is injected in the REST filters and extract information about the API key of the current request.

Is used to assess the permissions associated with the current call.

  • Constructor Details

    • ApiKeyRequestContext

      public ApiKeyRequestContext()
  • Method Details

    • isDefaultApiKeyUsed

      public boolean isDefaultApiKeyUsed()
    • getApiKey

      public String getApiKey()
    • startTimestamp

      public long startTimestamp()
    • init

      public void init(String apiKey)