IdToken extends OAuth2Token { public IdToken() { super(); } IdToken();  IdToken(final String token, JwtsSigningKeyResolver keyResolver);  IdToken(final String token, PublicKey publicKey); String getSignedToken(final PrivateKey key, final String keyId,
            final SignatureAlgorithm keyAlg);  }
@Test public void testIdToken() { long now = System.currentTimeMillis() / 1000; IdToken token = createIdToken(now); validateIdToken(token, now); PrivateKey privateKey = Crypto.loadPrivateKey(ecPrivateKey); String idJws = token.getSignedToken(privateKey, "eckey1", SignatureAlgorithm.ES256); assertNotNull(idJws); PublicKey publicKey = Crypto.loadPublicKey(ecPublicKey); Jws<Claims> claims = Jwts.parserBuilder().setSigningKey(publicKey).build().parseClaimsJws(idJws); assertNotNull(claims); assertEquals("subject", claims.getBody().getSubject()); assertEquals("coretech", claims.getBody().getAudience()); assertEquals("athenz", claims.getBody().getIssuer()); }