Skip to content

Commit 19c5dc4

Browse files
committed
set public scope for builder methods
1 parent a1f28c4 commit 19c5dc4

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ com_crashlytics_export_strings.xml
5454
crashlytics.properties
5555
crashlytics-build.properties
5656
fabric.properties
57+
5758
### Java template
5859
*.class
5960

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.util.Date;
88
import java.util.List;
99

10+
@SuppressWarnings("WeakerAccess")
1011
public final class JWT implements com.auth0.jwt.interfaces.JWT {
1112

1213
private final com.auth0.jwt.interfaces.JWT jwt;

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
/**
1919
* The JWTCreator class holds the sign method to generate a complete JWT (with Signature) from a given Header and Payload content.
2020
*/
21-
class JWTCreator {
21+
@SuppressWarnings("WeakerAccess")
22+
public final class JWTCreator {
2223

2324
private final Algorithm algorithm;
2425
private final String headerJson;
@@ -51,7 +52,7 @@ static JWTCreator.Builder init() {
5152
/**
5253
* The Builder class holds the Claims that defines the JWT to be created.
5354
*/
54-
static class Builder {
55+
public static class Builder {
5556
private final Map<String, Object> payloadClaims;
5657
private Map<String, Object> headerClaims;
5758

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/**
1616
* The JWTDecoder class holds the decode method to parse a given Token into it's JWT representation.
1717
*/
18+
@SuppressWarnings("WeakerAccess")
1819
final class JWTDecoder implements JWT {
1920

2021
private Header header;

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
/**
1515
* The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also it's signature matches.
1616
*/
17-
final class JWTVerifier {
17+
@SuppressWarnings("WeakerAccess")
18+
public final class JWTVerifier {
1819
private final Algorithm algorithm;
1920
final Map<String, Object> claims;
2021
private final Clock clock;
@@ -39,7 +40,7 @@ static JWTVerifier.Verification init(Algorithm algorithm) throws IllegalArgument
3940
/**
4041
* The Verification class holds the Claims required by a JWT to be valid.
4142
*/
42-
static class Verification {
43+
public static class Verification {
4344
private final Algorithm algorithm;
4445
private final Map<String, Object> claims;
4546
private long defaultLeeway;

0 commit comments

Comments
 (0)