-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor move jwt classes into provider package, make them package pr…
…ivate
- Loading branch information
1 parent
404e512
commit 24729be
Showing
8 changed files
with
38 additions
and
46 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
auth0/src/main/java/com/auth0/android/jwt/NoSignatureVerifier.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
auth0/src/main/java/com/auth0/android/provider/NoSignatureVerifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.auth0.android.provider; | ||
|
||
class NoSignatureVerifier extends SignatureVerifier { | ||
|
||
private static final String EXPECTED_ALGORITHM = "HS256"; | ||
|
||
NoSignatureVerifier() { | ||
super(EXPECTED_ALGORITHM); | ||
//TODO: anything missing? | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
...android/jwt/TokenValidationException.java → ...id/provider/TokenValidationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
package com.auth0.android.jwt; | ||
package com.auth0.android.provider; | ||
|
||
import com.auth0.android.authentication.AuthenticationException; | ||
|
||
//TODO: Make pkg private | ||
public class TokenValidationException extends AuthenticationException { | ||
class TokenValidationException extends AuthenticationException { | ||
private static final String ERROR_CODE = "a0.sdk.internal_error.id_token_validation"; | ||
|
||
public TokenValidationException(String message) { | ||
TokenValidationException(String message) { | ||
super(ERROR_CODE, message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters