File tree Expand file tree Collapse file tree 5 files changed +9
-4
lines changed
lib/src/main/java/com/auth0/jwt Expand file tree Collapse file tree 5 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ com_crashlytics_export_strings.xml
5454crashlytics.properties
5555crashlytics-build.properties
5656fabric.properties
57+
5758# ## Java template
5859* .class
5960
Original file line number Diff line number Diff line change 77import java .util .Date ;
88import java .util .List ;
99
10+ @ SuppressWarnings ("WeakerAccess" )
1011public final class JWT implements com .auth0 .jwt .interfaces .JWT {
1112
1213 private final com .auth0 .jwt .interfaces .JWT jwt ;
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1515/**
1616 * The JWTDecoder class holds the decode method to parse a given Token into it's JWT representation.
1717 */
18+ @ SuppressWarnings ("WeakerAccess" )
1819final class JWTDecoder implements JWT {
1920
2021 private Header header ;
Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments