X Tutup
Skip to content

Commit 893b6ba

Browse files
author
Justin Dahmubed
committed
Making classes public
1 parent 1ba7e74 commit 893b6ba

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import java.util.Date;
66

7-
final class ClockImpl implements Clock {
7+
public final class ClockImpl implements Clock {
88

9-
ClockImpl() {
9+
public ClockImpl() {
1010
}
1111

1212
@Override

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
* The JWTDecoder class holds the decode method to parse a given JWT token into it's JWT representation.
1818
*/
1919
@SuppressWarnings("WeakerAccess")
20-
final class JWTDecoder implements DecodedJWT {
20+
public final class JWTDecoder implements DecodedJWT {
2121

2222
private final String[] parts;
2323
private final Header header;
2424
private final Payload payload;
2525

26-
JWTDecoder(String jwt) throws JWTDecodeException {
26+
public JWTDecoder(String jwt) throws JWTDecodeException {
2727
parts = TokenUtils.splitToken(jwt);
2828
final JWTParser converter = new JWTParser();
2929
String headerJson;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.auth0.jwt.exceptions.JWTDecodeException;
44

5-
abstract class TokenUtils {
5+
public abstract class TokenUtils {
66

77
/**
88
* Splits the given token on the "." chars into a String array with 3 parts.
@@ -11,7 +11,7 @@ abstract class TokenUtils {
1111
* @return the array representing the 3 parts of the token.
1212
* @throws JWTDecodeException if the Token doesn't have 3 parts.
1313
*/
14-
static String[] splitToken(String token) throws JWTDecodeException {
14+
public static String[] splitToken(String token) throws JWTDecodeException {
1515
String[] parts = token.split("\\.");
1616
if (parts.length == 2 && token.endsWith(".")) {
1717
//Tokens with alg='none' have empty String as Signature.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
public class TimeUtil {
88

9-
static Date generateRandomExpDateInFuture() {
9+
public static Date generateRandomExpDateInFuture() {
1010
Random rnd = new Random();
1111
return new Date(Math.abs(System.currentTimeMillis() + rnd.nextLong()));
1212
}
1313

14-
static Date generateRandomIatDateInPast() {
14+
public static Date generateRandomIatDateInPast() {
1515
GregorianCalendar gc = new GregorianCalendar();
1616
int year = randBetween(1900, 2010);
1717
gc.set(gc.YEAR, year);
@@ -21,7 +21,7 @@ static Date generateRandomIatDateInPast() {
2121
return new Date(gc.getTimeInMillis());
2222
}
2323

24-
static int randBetween(int start, int end) {
24+
public static int randBetween(int start, int end) {
2525
return start + (int)Math.round(Math.random() * (end - start));
2626
}
2727

0 commit comments

Comments
 (0)
X Tutup