public interface JWTParser
JsonWebToken
.Modifier and Type | Method and Description |
---|---|
org.eclipse.microprofile.jwt.JsonWebToken |
decrypt(String token,
PrivateKey key)
Parse JWT token.
|
org.eclipse.microprofile.jwt.JsonWebToken |
decrypt(String token,
SecretKey key)
Parse JWT token.
|
org.eclipse.microprofile.jwt.JsonWebToken |
decrypt(String token,
String secret)
Parse JWT token.
|
org.eclipse.microprofile.jwt.JsonWebToken |
parse(String token)
Parse JWT token.
|
org.eclipse.microprofile.jwt.JsonWebToken |
parse(String token,
JWTAuthContextInfo context)
Parse JWT token.
|
org.eclipse.microprofile.jwt.JsonWebToken |
verify(String token,
PublicKey key)
Parse JWT token.
|
org.eclipse.microprofile.jwt.JsonWebToken |
verify(String token,
SecretKey key)
Parse JWT token.
|
org.eclipse.microprofile.jwt.JsonWebToken |
verify(String token,
String secret)
Parse JWT token.
|
org.eclipse.microprofile.jwt.JsonWebToken parse(String token) throws ParseException
JsonWebToken
.
This method depends on the injected JWTAuthContextInfo
configuration context.token
- the JWT tokenParseException
- parse exceptionorg.eclipse.microprofile.jwt.JsonWebToken parse(String token, JWTAuthContextInfo context) throws ParseException
JsonWebToken
.token
- the JWT tokencontext
- the configuration context which will override the injected JWTAuthContextInfo
configuration
context.ParseException
- parse exceptionorg.eclipse.microprofile.jwt.JsonWebToken verify(String token, PublicKey key) throws ParseException
JsonWebToken
.token
- the JWT tokenkey
- the public verification key. The injected JWTAuthContextInfo
configuration context
will be reused, only its publicVerificationKey property will be replaced by this parameter.ParseException
- parse exceptionorg.eclipse.microprofile.jwt.JsonWebToken verify(String token, SecretKey key) throws ParseException
JsonWebToken
.token
- the JWT tokenkey
- the secret verification key. The injected JWTAuthContextInfo
configuration context
will be reused, only its secretVerificationKey property will be replaced by this parameter.ParseException
- parse exceptionorg.eclipse.microprofile.jwt.JsonWebToken verify(String token, String secret) throws ParseException
JsonWebToken
.token
- the JWT tokensecret
- the secret. The injected JWTAuthContextInfo
configuration context
will be reused, only its secretVerificationKey property will be replaced after
converting this parameter to SecretKey
.ParseException
- parse exceptionorg.eclipse.microprofile.jwt.JsonWebToken decrypt(String token, PrivateKey key) throws ParseException
JsonWebToken
.token
- the JWT tokenkey
- the private decryption key. The injected JWTAuthContextInfo
configuration context
will be reused, only its privateDecryptionkey property will be replaced by this parameter.ParseException
- parse exceptionorg.eclipse.microprofile.jwt.JsonWebToken decrypt(String token, SecretKey key) throws ParseException
JsonWebToken
.token
- the JWT tokenkey
- the secret decryption key. The injected JWTAuthContextInfo
configuration context
will be reused, only its secretDecryptionkey property will be replaced by this parameter.ParseException
- parse exceptionorg.eclipse.microprofile.jwt.JsonWebToken decrypt(String token, String secret) throws ParseException
JsonWebToken
.token
- the JWT tokensecret
- the secret. The injected JWTAuthContextInfo
configuration context
will be reused, only its secretDecryptionkey property will be replaced will be replaced after
converting this parameter to SecretKey
.ParseException
- parse exceptionCopyright © 2018–2021. All rights reserved.