Adapt tests to new version of jjwt

This commit is contained in:
René Pfeuffer
2018-11-30 10:29:08 +01:00
parent 2e092b36cf
commit 176d121aa0
2 changed files with 2 additions and 2 deletions

View File

@@ -272,7 +272,7 @@ private String createCompactToken(String subject, SecureKey key) {
.thenReturn(
new SecretKeySpec(
key.getBytes(),
SignatureAlgorithm.HS256.getValue()
SignatureAlgorithm.HS256.getJcaName()
)
);
}

View File

@@ -230,7 +230,7 @@ public class JwtAccessTokenResolverTest {
.thenReturn(
new SecretKeySpec(
key.getBytes(),
SignatureAlgorithm.HS256.getValue()
SignatureAlgorithm.HS256.getJcaName()
)
);
}