Package | Description |
---|---|
io.jsonwebtoken |
Modifier and Type | Interface and Description |
---|---|
interface |
JwtHandler<T>
Deprecated.
since 0.12.0 in favor of calling
Jwt.accept(JwtVisitor) . |
Modifier and Type | Class and Description |
---|---|
class |
JwtHandlerAdapter<T>
An Adapter implementation of the
JwtHandler interface that allows for anonymous subclasses to process only the JWT results that are
known/expected for a particular use case. |
class |
SupportedJwtVisitor<T>
A
JwtVisitor that guarantees only supported JWT instances are handled, rejecting
all other (unsupported) JWTs with UnsupportedJwtException s. |
Modifier and Type | Field and Description |
---|---|
static JwtVisitor<Jws<Claims>> |
Jws.CLAIMS
Visitor implementation that ensures the visited JWT is a JSON Web Signature ('JWS') message with a
cryptographically authenticated/verified
Claims payload, and rejects all others with an
UnsupportedJwtException . |
static JwtVisitor<Jwe<Claims>> |
Jwe.CLAIMS
Visitor implementation that ensures the visited JWT is a JSON Web Encryption ('JWE') message with an
authenticated and decrypted
Claims payload, and rejects all others with an
UnsupportedJwtException . |
static JwtVisitor<Jws<byte[]>> |
Jws.CONTENT
Visitor implementation that ensures the visited JWT is a JSON Web Signature ('JWS') message with a
cryptographically authenticated/verified
byte[] array payload, and rejects all others with an
UnsupportedJwtException . |
static JwtVisitor<Jwe<byte[]>> |
Jwe.CONTENT
Visitor implementation that ensures the visited JWT is a JSON Web Encryption ('JWE') message with an
authenticated and decrypted
byte[] array payload, and rejects all others with an
UnsupportedJwtException . |
static JwtVisitor<Jwt<Header,Claims>> |
Jwt.UNSECURED_CLAIMS
Visitor implementation that ensures the visited JWT is an unsecured
Claims JWT (one not
cryptographically signed or encrypted) and rejects all others with an UnsupportedJwtException . |
static JwtVisitor<Jwt<Header,byte[]>> |
Jwt.UNSECURED_CONTENT
Visitor implementation that ensures the visited JWT is an unsecured content JWT (one not cryptographically
signed or encrypted) and rejects all others with an
UnsupportedJwtException . |
Modifier and Type | Method and Description |
---|---|
<T> T |
Jwt.accept(JwtVisitor<T> visitor)
Invokes the specified
visitor 's appropriate type-specific visit method based on this JWT's type. |
Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.