From e192f70c665435801d97fc0473b9a59ad26d93b0 Mon Sep 17 00:00:00 2001 From: Loredana Crusoveanu Date: Sun, 18 Mar 2018 14:28:47 +0200 Subject: [PATCH] change alg signature --- .../java/io/jsonwebtoken/jjwtfun/service/SecretService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jjwt/src/main/java/io/jsonwebtoken/jjwtfun/service/SecretService.java b/jjwt/src/main/java/io/jsonwebtoken/jjwtfun/service/SecretService.java index 0165d10c83..4426a4b9b0 100644 --- a/jjwt/src/main/java/io/jsonwebtoken/jjwtfun/service/SecretService.java +++ b/jjwt/src/main/java/io/jsonwebtoken/jjwtfun/service/SecretService.java @@ -58,7 +58,7 @@ public class SecretService { } public byte[] getHS512SecretBytes() { - return TextCodec.BASE64.decode(secrets.get(SignatureAlgorithm.HS384.getValue())); + return TextCodec.BASE64.decode(secrets.get(SignatureAlgorithm.HS512.getValue())); } public Map refreshSecrets() {