BAEL-5309: Use base64url decoder (#11629)
This commit is contained in:
parent
f88b3e06a7
commit
3b687e3fed
|
@ -11,7 +11,7 @@ import static io.jsonwebtoken.SignatureAlgorithm.HS256;
|
||||||
public class JWTDecoderUtil {
|
public class JWTDecoderUtil {
|
||||||
|
|
||||||
public static String decodeJWTToken(String token) {
|
public static String decodeJWTToken(String token) {
|
||||||
Base64.Decoder decoder = Base64.getDecoder();
|
Base64.Decoder decoder = Base64.getUrlDecoder();
|
||||||
|
|
||||||
String[] chunks = token.split("\\.");
|
String[] chunks = token.split("\\.");
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ public class JWTDecoderUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String decodeJWTToken(String token, String secretKey) throws Exception {
|
public static String decodeJWTToken(String token, String secretKey) throws Exception {
|
||||||
Base64.Decoder decoder = Base64.getDecoder();
|
Base64.Decoder decoder = Base64.getUrlDecoder();
|
||||||
|
|
||||||
String[] chunks = token.split("\\.");
|
String[] chunks = token.split("\\.");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue