Class BearerTokenAuthentication

java.lang.Object
com.codename1.backend.security.AbstractAuthenticationToken
com.codename1.backend.security.oauth2.server.resource.BearerTokenAuthentication
All Implemented Interfaces:
Authentication

public final class BearerTokenAuthentication extends AbstractAuthenticationToken
Who an opaque bearer token said the request is from, as its introspection answered.
  • Constructor Details

  • Method Details

    • getTokenAttributes

      public Map<String,Object> getTokenAttributes()
      What introspection answered for the token.
    • getPrincipal

      public Object getPrincipal()
      Description copied from interface: Authentication
      The identity: a username before authentication, and afterwards usually the UserDetails it was resolved to.
    • getCredentials

      public Object getCredentials()
      Description copied from interface: Authentication
      What proves the principal is who it says: a password, usually, and null once it has been checked.
    • getName

      public String getName()
      Description copied from interface: Authentication
      The principal's name.
      Specified by:
      getName in interface Authentication
      Overrides:
      getName in class AbstractAuthenticationToken