Class JWTPrincipal

java.lang.Object
org.apache.solr.security.jwt.JWTPrincipal
All Implemented Interfaces:
Principal
Direct Known Subclasses:
JWTPrincipalWithUserRoles

public class JWTPrincipal extends Object implements Principal
Principal object that carries JWT token and claims for authenticated user.
  • Constructor Details

    • JWTPrincipal

      public JWTPrincipal(String username, String token, Map<String,Object> claims)
      User principal with user name as well as one or more roles that he/she belong to
      Parameters:
      username - string with user name for user
      token - compact string representation of JWT token
      claims - list of verified JWT claims as a map
  • Method Details