public class JWTPrincipal extends Object implements Principal
| Constructor and Description | 
|---|
| 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 | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| Map<String,Object> | getClaims() | 
| String | getName() | 
| String | getToken() | 
| int | hashCode() | 
| String | toString() | 
public JWTPrincipal(String username, String token, Map<String,Object> claims)
username - string with user name for usertoken - compact string representation of JWT tokenclaims - list of verified JWT claims as a mapCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.