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