Package | Description |
---|---|
io.jsonwebtoken |
Modifier and Type | Method and Description |
---|---|
JwtParser |
JwtParser.base64UrlDecodeWith(Decoder<String,byte[]> base64UrlDecoder)
Perform Base64Url decoding with the specified Decoder
|
JwtParser |
JwtParser.deserializeJsonWith(Deserializer<Map<String,?>> deserializer)
Uses the specified deserializer to convert JSON Strings (UTF-8 byte arrays) into Java Map objects.
|
static JwtParser |
Jwts.parser()
Returns a new
JwtParser instance that can be configured and then used to parse JWT strings. |
JwtParser |
JwtParser.require(String claimName,
Object value)
Ensures that the specified
claimName exists in the parsed JWT. |
JwtParser |
JwtParser.requireAudience(String audience)
Ensures that the specified
aud exists in the parsed JWT. |
JwtParser |
JwtParser.requireExpiration(Date expiration)
Ensures that the specified
exp exists in the parsed JWT. |
JwtParser |
JwtParser.requireId(String id)
Ensures that the specified
jti exists in the parsed JWT. |
JwtParser |
JwtParser.requireIssuedAt(Date issuedAt)
Ensures that the specified
iat exists in the parsed JWT. |
JwtParser |
JwtParser.requireIssuer(String issuer)
Ensures that the specified
iss exists in the parsed JWT. |
JwtParser |
JwtParser.requireNotBefore(Date notBefore)
Ensures that the specified
nbf exists in the parsed JWT. |
JwtParser |
JwtParser.requireSubject(String subject)
Ensures that the specified
sub exists in the parsed JWT. |
JwtParser |
JwtParser.setAllowedClockSkewSeconds(long seconds)
Sets the amount of clock skew in seconds to tolerate when verifying the local time against the
exp
and nbf claims. |
JwtParser |
JwtParser.setClock(Clock clock)
Sets the
Clock that determines the timestamp to use when validating the parsed JWT. |
JwtParser |
JwtParser.setCompressionCodecResolver(CompressionCodecResolver compressionCodecResolver)
Sets the
CompressionCodecResolver used to acquire the CompressionCodec that should be used to
decompress the JWT body. |
JwtParser |
JwtParser.setSigningKey(byte[] key)
Sets the signing key used to verify any discovered JWS digital signature.
|
JwtParser |
JwtParser.setSigningKey(Key key)
Sets the signing key used to verify any discovered JWS digital signature.
|
JwtParser |
JwtParser.setSigningKey(String base64EncodedSecretKey)
Sets the signing key used to verify any discovered JWS digital signature.
|
JwtParser |
JwtParser.setSigningKeyResolver(SigningKeyResolver signingKeyResolver)
Sets the
SigningKeyResolver used to acquire the signing key that should be used to verify
a JWS's signature. |
Copyright © 2018. All rights reserved.