Skip to content

Commit

Permalink
Update lib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.java
Browse files Browse the repository at this point in the history
Co-authored-by: Rita Zerrizuela <[email protected]>
  • Loading branch information
lbalmaceda and Widcket authored Jun 16, 2020
1 parent 10196ec commit 9e99365
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void shouldGetStringBytes() throws Exception {
}

@Test
public void shouldKeepCopyTheReceivedSecretArray() throws Exception {
public void shouldCopyTheReceivedSecretArray() throws Exception {
String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
byte[] secretArray = "secret".getBytes(Charset.defaultCharset());
Algorithm algorithmString = Algorithm.HMAC256(secretArray);
Expand Down Expand Up @@ -293,4 +293,4 @@ public void shouldBeEqualSignatureMethodResults() throws Exception {
assertThat(algorithm.sign(bout.toByteArray()), is(algorithm.sign(header, payload)));
}

}
}

0 comments on commit 9e99365

Please sign in to comment.