Package | Description |
---|---|
io.jsonwebtoken | |
io.jsonwebtoken.impl |
Modifier and Type | Method and Description |
---|---|
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 base64EncodedKeyBytes)
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. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultJwtParser |
Modifier and Type | Method and Description |
---|---|
JwtParser |
DefaultJwtParser.require(String claimName,
Object value) |
JwtParser |
DefaultJwtParser.requireAudience(String audience) |
JwtParser |
DefaultJwtParser.requireExpiration(Date expiration) |
JwtParser |
DefaultJwtParser.requireId(String id) |
JwtParser |
DefaultJwtParser.requireIssuedAt(Date issuedAt) |
JwtParser |
DefaultJwtParser.requireIssuer(String issuer) |
JwtParser |
DefaultJwtParser.requireNotBefore(Date notBefore) |
JwtParser |
DefaultJwtParser.requireSubject(String subject) |
JwtParser |
DefaultJwtParser.setAllowedClockSkewSeconds(long seconds) |
JwtParser |
DefaultJwtParser.setClock(Clock clock) |
JwtParser |
DefaultJwtParser.setCompressionCodecResolver(CompressionCodecResolver compressionCodecResolver) |
JwtParser |
DefaultJwtParser.setSigningKey(byte[] key) |
JwtParser |
DefaultJwtParser.setSigningKey(Key key) |
JwtParser |
DefaultJwtParser.setSigningKey(String base64EncodedKeyBytes) |
JwtParser |
DefaultJwtParser.setSigningKeyResolver(SigningKeyResolver signingKeyResolver) |
Copyright © 2016. All rights reserved.