Skip to content

Add RS Algorithm Verification#86

Merged
lbalmaceda merged 4 commits into
v3from
feat-rs-verify
Oct 31, 2016
Merged

Add RS Algorithm Verification#86
lbalmaceda merged 4 commits into
v3from
feat-rs-verify

Conversation

@lbalmaceda

Copy link
Copy Markdown
Contributor

Add RS Algorithm verification and refactor the way the JWTVerifier is inited.

Example usage:

For HS verification

String secret = "secret";
JWT jwt = JWTVerifier.init(HSAlgorithm.HS256, secret)
                     .verify("my.jwt.token");

Supported HS algorithms:
HSAlgorithm.HS256, HSAlgorithm.HS384, HSAlgorithm.HS512

For RS verification

PublicKey publicKey = parsePublicKeyFile();
JWT jwt = JWTVerifier.init(RSAlgorithm.RS256, publicKey)
                     .verify("my.jwt.token");

Supported RS algorithms:
RSAlgorithm.RS256, RSAlgorithm.RS384, RSAlgorithm.RS512

@auth0 auth0 locked and limited conversation to collaborators Oct 31, 2016
@lbalmaceda lbalmaceda merged commit 228f900 into v3 Oct 31, 2016
@lbalmaceda lbalmaceda deleted the feat-rs-verify branch October 31, 2016 20:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant