@Test public void getCodeHash512() { String testCode = "b0x0rZ"; Base64URL expectedHash = new Base64URL("R5DCRi5eOjlvyTAJfry2dNM9adJ2ElpDEKYYByYU920"); Base64URL resultHash = IdTokenHashUtils.getCodeHash(JWSAlgorithm.ES512, testCode); assertEquals(expectedHash, resultHash); }
public static Base64URL getCodeHash(JWSAlgorithm signingAlg, String code) { return getHash(signingAlg, code.getBytes()); }
IdTokenHashUtils { public static Base64URL getCodeHash(JWSAlgorithm signingAlg, String code) { return getHash(signingAlg, code.getBytes()); } }
IdTokenHashUtils { public static Base64URL getCodeHash(JWSAlgorithm signingAlg, String code) { return getHash(signingAlg, code.getBytes()); }  }
IdTokenHashUtils { public static Base64URL getCodeHash(JWSAlgorithm signingAlg, String code) { return getHash(signingAlg, code.getBytes()); }  static Base64URL getCodeHash(JWSAlgorithm signingAlg, String code); static Base64URL getAccessTokenHash(JWSAlgorithm signingAlg, OAuth2AccessTokenEntity token); static Base64URL getHash(JWSAlgorithm signingAlg, byte[] bytes); }
IdTokenHashUtils { public static Base64URL getCodeHash(JWSAlgorithm signingAlg, String code) { return getHash(signingAlg, code.getBytes()); }  static Base64URL getCodeHash(JWSAlgorithm signingAlg, String code); static Base64URL getAccessTokenHash(JWSAlgorithm signingAlg, OAuth2AccessTokenEntity token); static Base64URL getHash(JWSAlgorithm signingAlg, byte[] bytes);  }