SEPARATOR_CHAR| Constructor and Description |
|---|
DefaultJwtParser()
Deprecated.
for backward compatibility only, see other constructors.
|
@Deprecated public DefaultJwtParser()
public JwtParser deserializeJsonWith(Deserializer<Map<String,?>> deserializer)
deserializeJsonWith in interface JwtParserpublic JwtParser base64UrlDecodeWith(Decoder<String,byte[]> base64UrlDecoder)
base64UrlDecodeWith in interface JwtParserpublic JwtParser requireIssuedAt(Date issuedAt)
requireIssuedAt in interface JwtParserpublic JwtParser requireIssuer(String issuer)
requireIssuer in interface JwtParserpublic JwtParser requireAudience(String audience)
requireAudience in interface JwtParserpublic JwtParser requireSubject(String subject)
requireSubject in interface JwtParserpublic JwtParser requireExpiration(Date expiration)
requireExpiration in interface JwtParserpublic JwtParser requireNotBefore(Date notBefore)
requireNotBefore in interface JwtParserpublic JwtParser setAllowedClockSkewSeconds(long seconds) throws IllegalArgumentException
setAllowedClockSkewSeconds in interface JwtParserIllegalArgumentExceptionpublic JwtParser setSigningKey(byte[] key)
setSigningKey in interface JwtParserpublic JwtParser setSigningKey(String base64EncodedSecretKey)
setSigningKey in interface JwtParserpublic JwtParser setSigningKey(Key key)
setSigningKey in interface JwtParserpublic JwtParser setSigningKeyResolver(SigningKeyResolver signingKeyResolver)
setSigningKeyResolver in interface JwtParserpublic JwtParser setCompressionCodecResolver(CompressionCodecResolver compressionCodecResolver)
setCompressionCodecResolver in interface JwtParserpublic Jwt parse(String jwt) throws ExpiredJwtException, MalformedJwtException, SignatureException
parse in interface JwtParserExpiredJwtExceptionMalformedJwtExceptionSignatureExceptionprotected JwtSignatureValidator createSignatureValidator(SignatureAlgorithm alg, Key key)
public <T> T parse(String compact, JwtHandler<T> handler) throws ExpiredJwtException, MalformedJwtException, SignatureException
parse in interface JwtParserExpiredJwtExceptionMalformedJwtExceptionSignatureExceptionpublic Jwt<Header,String> parsePlaintextJwt(String plaintextJwt)
parsePlaintextJwt in interface JwtParserpublic Jwt<Header,Claims> parseClaimsJwt(String claimsJwt)
parseClaimsJwt in interface JwtParserpublic Jws<String> parsePlaintextJws(String plaintextJws)
parsePlaintextJws in interface JwtParserpublic Jws<Claims> parseClaimsJws(String claimsJws)
parseClaimsJws in interface JwtParserCopyright © 2014–2022 jsonwebtoken.io. All rights reserved.