@Override
  public Object getPrincipal() {
    return username;
  }
Constructor.

@param username           the principal's username
@param token              the JWT token (or credential)
@param grantedAuthorities the granted authorities
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/jwt/JwtAuthenticationToken.java