Package | Description |
---|---|
io.jsonwebtoken | |
io.jsonwebtoken.io | |
io.jsonwebtoken.security |
Modifier and Type | Class and Description |
---|---|
class |
ClaimJwtException
ClaimJwtException is a subclass of the
JwtException that is thrown after a validation of an JWT claim failed. |
class |
CompressionException
Exception indicating that either compressing or decompressing a JWT body failed.
|
class |
ExpiredJwtException
Exception indicating that a JWT was accepted after it expired and must be rejected.
|
class |
IncorrectClaimException
Exception thrown when discovering that a required claim does not equal the required value, indicating the JWT is
invalid and may not be used.
|
class |
InvalidClaimException
Exception indicating a parsed claim is invalid in some way.
|
class |
MalformedJwtException
Exception indicating that a JWT was not correctly constructed and should be rejected.
|
class |
MissingClaimException
Exception thrown when discovering that a required claim is not present, indicating the JWT is
invalid and may not be used.
|
class |
PrematureJwtException
Exception indicating that a JWT was accepted before it is allowed to be accessed and must be rejected.
|
class |
RequiredTypeException
Exception thrown when attempting to obtain a value from a JWT or JWK and the existing value does not match the
expected type.
|
class |
SignatureException
Deprecated.
in favor of
SignatureException ; this class will be removed before 1.0 |
class |
UnsupportedJwtException
Exception thrown when receiving a JWT in a particular format/configuration that does not match the format expected
by the application.
|
Modifier and Type | Method and Description |
---|---|
Jwe<Claims> |
JwtParser.parseEncryptedClaims(CharSequence jwe)
Parses the
jwe argument, expected to be an encrypted Claims JWE. |
Jwe<byte[]> |
JwtParser.parseEncryptedContent(CharSequence jwe)
Parses the
jwe argument, expected to be an encrypted content JWE. |
Jws<Claims> |
JwtParser.parseSignedClaims(CharSequence jws)
Parses the
jws argument, expected to be a cryptographically-signed Claims JWS. |
Jws<Claims> |
JwtParser.parseSignedClaims(CharSequence jws,
byte[] unencodedPayload)
Parses a JWS known to use the
RFC 7797: JSON Web Signature (JWS) Unencoded Payload
Option, using the specified
unencodedPayload for signature verification. |
Jws<Claims> |
JwtParser.parseSignedClaims(CharSequence jws,
InputStream unencodedPayload)
Parses a JWS known to use the
RFC 7797: JSON Web Signature (JWS) Unencoded Payload
Option, using the bytes from the specified
unencodedPayload stream for signature verification and
Claims creation. |
Jws<byte[]> |
JwtParser.parseSignedContent(CharSequence jws)
Parses the
jws argument, expected to be a cryptographically-signed content JWS. |
Jwt<Header,Claims> |
JwtParser.parseUnsecuredClaims(CharSequence jwt)
Parses the
jwt argument, expected to be an unsecured Claims JWT. |
Jwt<Header,byte[]> |
JwtParser.parseUnsecuredContent(CharSequence jwt)
Parses the
jwt argument, expected to be an unsecured content JWT. |
Modifier and Type | Class and Description |
---|---|
class |
CodecException
An exception thrown when encountering a problem during encoding or decoding.
|
class |
DecodingException
An exception thrown when encountering a problem during decoding.
|
class |
DeserializationException
Exception thrown when reconstituting a serialized byte array into a Java object.
|
class |
EncodingException
An exception thrown when encountering a problem during encoding.
|
class |
IOException
JJWT's base exception for problems during data input or output operations, such as serialization,
deserialization, marshalling, unmarshalling, etc.
|
class |
SerialException
An exception thrown during serialization or deserialization.
|
class |
SerializationException
Exception thrown when converting a Java object to a formatted byte array.
|
Modifier and Type | Class and Description |
---|---|
class |
InvalidKeyException
A
KeyException thrown when encountering a key that is not suitable for the required functionality, or
when attempting to use a Key in an incorrect or prohibited manner. |
class |
KeyException
|
class |
MalformedKeyException
Exception thrown when encountering a key or key material that is incomplete or improperly configured or
formatted and cannot be used as expected.
|
class |
MalformedKeySetException
Exception thrown when encountering a
JwkSet that is incomplete or improperly configured or
formatted and cannot be used as expected. |
class |
SecurityException
A
JwtException attributed to a problem with security-related elements, such as
cryptographic keys, algorithms, or the underlying Java JCA API. |
class |
UnsupportedKeyException
Exception thrown when encountering a key or key material that is not supported or recognized.
|
class |
WeakKeyException
Exception thrown when encountering a key that is not strong enough (of sufficient length) to be used with
a particular algorithm or in a particular security context.
|
Copyright © 2014–2025 jsonwebtoken.io. All rights reserved.