cr.addIDTokenClaim(new ClaimsRequest.Entry("email", ClaimRequirement.ESSENTIAL));
AuthenticationRequest authRequest = new AuthenticationRequest.Builder(
new ResponseType("code"),
new Scope("openid", "email"),
new ClientID("123"),
new URI("https://client.com/cb")).claims(cr).build();
ClaimsRequest claimsRequest = ClaimsRequest.resolve(authRequest);
Set<String> idTokenClaims = claimsRequest.getIDTokenClaimNames(false);