Auth0Jwt extends DefaultOAuthJwtAccessToken { public Auth0Jwt(Jws<Claims> jws) { super(jws); } Auth0Jwt(Jws<Claims> jws); @Override String getSubject(); @Override String getClientId(); @Override String getCertificateThumbprint(); static void setClaimClientId(String claimClientId); static void setClaimConfirm(String claimConfirm); static void setUserDomain(String userDomain); static String getClaimClientId(); static String getClaimConfirm(); static String getUserDomain();  }
@Test public void testAuth0Jwt() { assertThrows(NullPointerException.class, () -> new Auth0Jwt(null)); assertNotNull(new Auth0Jwt(parser.parseClaimsJws(Jwts.builder().setSubject("subject").signWith(secretKey).compact()))); }