Skip to content

Commit 4aaef9b

Browse files
committed
tests for RS384 and and RS512 added
1 parent 9919561 commit 4aaef9b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/test/java/org/oidc/msg/util/TokenHashTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class TokenHashTest {
3030
public void testHashSuccess() {
3131
String at = "jHkWEdUXMU1BwAsC4vtUsZwnNvTIxEl0z9K3vx5KF0Y";
3232
Assert.assertThat("77QmUPtjPfzWtF2AnpK9RQ", CoreMatchers.is(TokenHash.compute(at, "RS256")));
33+
Assert.assertThat("jtAeDp945y1dDqU3nkIVGNZP1HjH_MFs", CoreMatchers.is(TokenHash.compute(at, "RS384")));
34+
Assert.assertThat("q7nS86GgvvFaZkzALLWqJYaJIKw2wCDAVfCAsm5CrBM", CoreMatchers.is(TokenHash.compute(at, "RS512")));
3335
String c = "Qcb0Orv1zh30vL1MPRsbm-diHiMwcLyZvn1arpZv-Jxf_11jnpEX3Tgfvk";
3436
Assert.assertThat("LDktKdoQak3Pk0cnXxCltA", CoreMatchers.is(TokenHash.compute(c, "RS256")));
3537
}

0 commit comments

Comments
 (0)