| 接口 | 说明 |
|---|---|
| Claims |
A JWT Claims set.
|
| ClaimsMutator<T extends ClaimsMutator> |
Mutation (modifications) to a
Claims instance. |
| Clock |
A clock represents a time source that can be used when creating and verifying JWTs.
|
| CompressionCodec |
Compresses and decompresses byte arrays according to a compression algorithm.
|
| CompressionCodecResolver |
Looks for a JWT
calg header, and if found, returns the corresponding CompressionCodec the parser
can use to decompress the JWT body. |
| Header<T extends Header<T>> |
A JWT JOSE header.
|
| Jws<B> |
An expanded (not compact/serialized) Signed JSON Web Token.
|
| JwsHeader<T extends JwsHeader<T>> |
A JWS header.
|
| Jwt<H extends Header,B> |
An expanded (not compact/serialized) JSON Web Token.
|
| JwtBuilder |
A builder for constructing JWTs.
|
| JwtHandler<T> |
A JwtHandler is invoked by a
JwtParser after parsing a JWT to indicate the exact
type of JWT or JWS parsed. |
| JwtParser |
A parser for reading JWT strings, used to convert them into a
Jwt object representing the expanded JWT. |
| SigningKeyResolver |
A
SigningKeyResolver can be used by a JwtParser to find a signing key that
should be used to verify a JWS signature. |
| 类 | 说明 |
|---|---|
| CompressionCodecs |
Provides default implementations of the
CompressionCodec interface. |
| 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. |
| Jwts |
Factory class useful for creating instances of JWT interfaces.
|
| SigningKeyResolverAdapter |
An Adapter implementation of the
SigningKeyResolver interface that allows subclasses to process only the type of JWS body that
is known/expected for a particular case. |
| 枚举 | 说明 |
|---|---|
| SignatureAlgorithm |
Type-safe representation of standard JWT signature algorithm names as defined in the
JSON Web Algorithms specification.
|
| 异常错误 | 说明 |
|---|---|
| ClaimJwtException |
ClaimJwtException is a subclass of the
JwtException that is thrown after a validation of an JTW claim failed. |
| CompressionException |
Exception indicating that either compressing or decompressing an JWT body failed.
|
| ExpiredJwtException |
Exception indicating that a JWT was accepted after it expired and must be rejected.
|
| 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.
|
| InvalidClaimException |
Exception indicating a parsed claim is invalid in some way.
|
| JwtException |
Base class for JWT-related runtime exceptions.
|
| MalformedJwtException |
Exception indicating that a JWT was not correctly constructed and should be rejected.
|
| MissingClaimException |
Exception thrown when discovering that a required claim is not present, indicating the JWT is
invalid and may not be used.
|
| PrematureJwtException |
Exception indicating that a JWT was accepted before it is allowed to be accessed and must be rejected.
|
| RequiredTypeException |
Exception thrown when
Claims.get(String, Class) is called and the value does not match the type of the
Class argument. |
| SignatureException |
Exception indicating that either calculating a signature or verifying an existing signature of a JWT failed.
|
| UnsupportedJwtException |
Exception thrown when receiving a JWT in a particular format/configuration that does not match the format expected
by the application.
|