Package org.apache.solr.security.jwt
Class JWTPrincipal
java.lang.Object
org.apache.solr.security.jwt.JWTPrincipal
- All Implemented Interfaces:
Principal
- Direct Known Subclasses:
JWTPrincipalWithUserRoles
Principal object that carries JWT token and claims for authenticated user.
-
Constructor Details
-
JWTPrincipal
User principal with user name as well as one or more roles that he/she belong to- Parameters:
username- string with user name for usertoken- compact string representation of JWT tokenclaims- list of verified JWT claims as a map
-
-
Method Details
-
getName
-
getToken
-
getClaims
-
equals
-
hashCode
public int hashCode() -
toString
-