mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
Adapt tests to new version of jjwt
This commit is contained in:
@@ -272,7 +272,7 @@ private String createCompactToken(String subject, SecureKey key) {
|
|||||||
.thenReturn(
|
.thenReturn(
|
||||||
new SecretKeySpec(
|
new SecretKeySpec(
|
||||||
key.getBytes(),
|
key.getBytes(),
|
||||||
SignatureAlgorithm.HS256.getValue()
|
SignatureAlgorithm.HS256.getJcaName()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ public class JwtAccessTokenResolverTest {
|
|||||||
.thenReturn(
|
.thenReturn(
|
||||||
new SecretKeySpec(
|
new SecretKeySpec(
|
||||||
key.getBytes(),
|
key.getBytes(),
|
||||||
SignatureAlgorithm.HS256.getValue()
|
SignatureAlgorithm.HS256.getJcaName()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user