Class ApiKeyAuthenticationToken

java.lang.Object
com.codename1.backend.security.AbstractAuthenticationToken
com.codename1.backend.security.apikey.ApiKeyAuthenticationToken
All Implemented Interfaces:
Authentication

public final class ApiKeyAuthenticationToken extends AbstractAuthenticationToken
Who a request is from, when an API key says so. The principal is the ApiKey, the name is the key's owner, and each of the key's scopes is the authority SCOPE_x -- the same authorities a token with those scopes gets, so one set of rules covers both.
  • Constructor Details

    • ApiKeyAuthenticationToken

      public ApiKeyAuthenticationToken(ApiKey apiKey)
  • Method Details