aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 5b3d87eb..a16d920b 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -2374,12 +2374,12 @@ public class ServerTests {
ECPublicKeySpec pubSpec = new ECPublicKeySpec(point, ecSpec);
ECPublicKey publicKeyGenerated = (ECPublicKey) keyFactory.generatePublic(pubSpec);
- Jws jwt = Jwts.parser()
+ Jws<Claims> jwt = Jwts.parser()
.setSigningKey(publicKeyGenerated)
.parseClaimsJws(secret);
Assert.assertThat(jwt.getHeader().get("kid"), is("keyid"));
Assert.assertThat(jwt.getHeader().get("alg"), is("ES256"));
- Claims claims = (Claims)jwt.getBody();
+ Claims claims = jwt.getBody();
Assert.assertThat(claims.get("iss"), is("teamid"));
Assert.assertThat(claims.get("sub"), is("com.example.app"));
Assert.assertThat(claims.get("aud"), is("https://appleid.apple.com"));