File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 44
55import 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
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 22
33import 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.
Original file line number Diff line number Diff line change 66
77public 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
You can’t perform that action at this time.
0 commit comments