change base class of JWTDecoder · GJWT/javaOIDCMsg@72bceb9 · GitHub
Skip to content

Commit 72bceb9

Browse files
committed
change base class of JWTDecoder
1 parent 5c9bcc5 commit 72bceb9

5 files changed

Lines changed: 32 additions & 29 deletions

File tree

lib/src/main/java/com/auth0/jwt/JWT.java

Lines changed: 1 addition & 1 deletion

lib/src/main/java/com/auth0/jwt/JWTDecoder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.auth0.jwt.exceptions.JWTDecodeException;
44
import com.auth0.jwt.impl.JWTParser;
55
import com.auth0.jwt.interfaces.Claim;
6+
import com.auth0.jwt.interfaces.DecodedJWT;
67
import com.auth0.jwt.interfaces.Header;
78
import com.auth0.jwt.interfaces.Payload;
89
import org.apache.commons.codec.binary.Base64;
@@ -16,7 +17,7 @@
1617
* The JWTDecoder class holds the decode method to parse a given JWT token into it's JWT representation.
1718
*/
1819
@SuppressWarnings("WeakerAccess")
19-
final class JWTDecoder extends JWT {
20+
final class JWTDecoder implements DecodedJWT {
2021

2122
private final String token;
2223
private Header header;
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package com.auth0.jwt.exceptions;
22

33
public class TokenExpiredException extends JWTVerificationException {
4-
5-
private static final long serialVersionUID = -7076928975713577708L;
64

7-
public TokenExpiredException(String message) {
8-
super(message);
9-
}
5+
private static final long serialVersionUID = -7076928975713577708L;
6+
7+
public TokenExpiredException(String message) {
8+
super(message);
9+
}
1010
}

lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public Integer asInt() {
3636
}
3737

3838
@Override
39-
public Long asLong() { return !data.isNumber() ? null : data.asLong(); }
39+
public Long asLong() {
40+
return !data.isNumber() ? null : data.asLong();
41+
}
4042

4143
@Override
4244
public Double asDouble() {

lib/src/test/java/com/auth0/jwt/JWTDecoderTest.java

Lines changed: 21 additions & 21 deletions

0 commit comments

Comments
 (0)