Package | Description |
---|---|
io.jsonwebtoken |
Modifier and Type | Interface and Description |
---|---|
interface |
Jwe<B>
An encrypted JWT, called a "JWE", per the
JWE (RFC 7516) Specification.
|
interface |
Jws<P>
An expanded (not compact/serialized) Signed JSON Web Token.
|
interface |
ProtectedJwt<H extends ProtectedHeader,P>
A
ProtectedJwt is a Jwt that is integrity protected via a cryptographic algorithm that produces
a cryptographic digest, such as a MAC, Digital Signature or Authentication Tag. |
Modifier and Type | Field and Description |
---|---|
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 |
---|---|
Jwt<?,?> |
JwtParser.parse(CharSequence jwt)
Parses the specified compact serialized JWT string based on the builder's current configuration state and
returns the resulting JWT, JWS, or JWE instance.
|
Jwt<Header,Claims> |
JwtParser.parseClaimsJwt(CharSequence jwt)
Deprecated.
since 0.12.0 in favor of
JwtParser.parseUnsecuredClaims(CharSequence) . |
Jwt<Header,byte[]> |
JwtParser.parseContentJwt(CharSequence jwt)
Deprecated.
since 0.12.0 in favor of
JwtParser.parseUnsecuredContent(CharSequence) . |
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 | Method and Description |
---|---|
T |
JwtHandler.onClaimsJwt(Jwt<Header,Claims> jwt)
Deprecated.
This method is invoked when a
JwtParser determines that the parsed JWT is
a Claims JWT. |
T |
JwtHandlerAdapter.onClaimsJwt(Jwt<Header,Claims> jwt) |
T |
JwtHandler.onContentJwt(Jwt<Header,byte[]> jwt)
Deprecated.
This method is invoked when a
JwtParser determines that the parsed JWT is
an unsecured content JWT. |
T |
JwtHandlerAdapter.onContentJwt(Jwt<Header,byte[]> jwt) |
T |
JwtHandlerAdapter.onUnsecuredClaims(Jwt<Header,Claims> jwt) |
T |
SupportedJwtVisitor.onUnsecuredClaims(Jwt<Header,Claims> jwt)
Handles an encountered unsecured Claims JWT - one that is not cryptographically signed nor
encrypted, and has a
Claims payload. |
T |
JwtHandlerAdapter.onUnsecuredContent(Jwt<Header,byte[]> jwt) |
T |
SupportedJwtVisitor.onUnsecuredContent(Jwt<Header,byte[]> jwt)
Handles an encountered unsecured content JWT - one that is not cryptographically signed nor
encrypted, and has a byte[] array payload.
|
T |
JwtVisitor.visit(Jwt<?,?> jwt)
Handles an encountered Unsecured JWT that has not been cryptographically secured at all.
|
T |
SupportedJwtVisitor.visit(Jwt<?,?> jwt)
Handles an encountered unsecured JWT by delegating to either
SupportedJwtVisitor.onUnsecuredContent(Jwt) or
SupportedJwtVisitor.onUnsecuredClaims(Jwt) depending on the payload type. |
Copyright © 2014–2025 jsonwebtoken.io. All rights reserved.