Skip to content

Commit 4d330cf

Browse files
committed
Removed unused hash calculation
The other method remains for the `ath` claims Signed-off-by: David Kowis <david@kow.is>
1 parent f75fb0d commit 4d330cf

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

oauth2/oauth2-resource-server/src/test/java/org/springframework/security/oauth2/server/resource/authentication/DPoPAuthenticationProviderTests.java

-7
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,4 @@ private static String computeSHA256(String value) throws Exception {
322322
byte[] digest = md.digest(value.getBytes(StandardCharsets.UTF_8));
323323
return Base64.getUrlEncoder().withoutPadding().encodeToString(digest);
324324
}
325-
326-
private static String computeSHA256(PublicKey publicKey) throws Exception {
327-
MessageDigest md = MessageDigest.getInstance("SHA-256");
328-
byte[] digest = md.digest(publicKey.getEncoded());
329-
return Base64.getUrlEncoder().withoutPadding().encodeToString(digest);
330-
}
331-
332325
}

0 commit comments

Comments
 (0)