| Package | Description |
|---|---|
| io.jsonwebtoken |
| 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<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. |
| Modifier and Type | Method and Description |
|---|---|
Jws<Claims> |
JwtParser.parseClaimsJws(CharSequence jws)
Deprecated.
since 0.12.0 in favor of
JwtParser.parseSignedClaims(CharSequence). |
Jws<byte[]> |
JwtParser.parseContentJws(CharSequence jws)
Deprecated.
since 0.12.0 in favor of
JwtParser.parseSignedContent(CharSequence). |
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. |
Jws<byte[]> |
JwtParser.parseSignedContent(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<byte[]> |
JwtParser.parseSignedContent(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. |
| Modifier and Type | Method and Description |
|---|---|
T |
JwtHandler.onClaimsJws(Jws<Claims> jws)
Deprecated.
This method is invoked when a
JwtParser determines that the parsed JWT is
a valid Claims JWS. |
T |
JwtHandlerAdapter.onClaimsJws(Jws<Claims> jws) |
T |
JwtHandler.onContentJws(Jws<byte[]> jws)
Deprecated.
This method is invoked when a
JwtParser determines that the parsed JWT is
a content JWS. |
T |
JwtHandlerAdapter.onContentJws(Jws<byte[]> jws) |
T |
JwtHandlerAdapter.onVerifiedClaims(Jws<Claims> jws) |
T |
SupportedJwtVisitor.onVerifiedClaims(Jws<Claims> jws)
Handles an encountered JWS message that has been cryptographically verified/authenticated and has a
Claims payload. |
T |
JwtHandlerAdapter.onVerifiedContent(Jws<byte[]> jws) |
T |
SupportedJwtVisitor.onVerifiedContent(Jws<byte[]> jws)
Handles an encountered JWS message that has been cryptographically verified/authenticated and has
a byte[] array payload.
|
T |
JwtVisitor.visit(Jws<?> jws)
Handles an encountered JSON Web Signature (aka 'JWS') message that has been cryptographically
verified/authenticated.
|
T |
SupportedJwtVisitor.visit(Jws<?> jws)
Handles an encountered JSON Web Token (aka 'JWS') message that has been cryptographically verified/authenticated
by delegating to either
SupportedJwtVisitor.onVerifiedContent(Jws) or SupportedJwtVisitor.onVerifiedClaims(Jws) depending on the payload
type. |
Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.