Package | Description |
---|---|
io.jsonwebtoken |
Modifier and Type | Interface | Description |
---|---|---|
interface |
Header<T extends Header<T>> |
A JWT JOSE header.
|
interface |
Jwt<H extends Header,B> |
An expanded (not compact/serialized) JSON Web Token.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
JwsHeader<T extends JwsHeader<T>> |
A JWS header.
|
Modifier and Type | Method | Description |
---|---|---|
Header |
ClaimJwtException.getHeader() |
|
static Header |
Jwts.header() |
Creates a new
Header instance suitable for plaintext (not digitally signed) JWTs. |
static Header |
Jwts.header(Map<String,Object> header) |
Creates a new
Header instance suitable for plaintext (not digitally signed) JWTs, populated
with the specified name/value pairs. |
Modifier and Type | Method | Description |
---|---|---|
Jwt<Header,Claims> |
JwtParser.parseClaimsJwt(String claimsJwt) |
Parses the specified compact serialized JWT string based on the builder's current configuration state and
returns
the resulting unsigned plaintext JWT instance.
|
Jwt<Header,String> |
JwtParser.parsePlaintextJwt(String plaintextJwt) |
Parses the specified compact serialized JWT string based on the builder's current configuration state and
returns
the resulting unsigned plaintext JWT instance.
|
Modifier and Type | Method | Description |
---|---|---|
CompressionCodec |
CompressionCodecResolver.resolveCompressionCodec(Header header) |
Looks for a JWT
zip header, and if found, returns the corresponding CompressionCodec the parser
can use to decompress the JWT body. |
JwtBuilder |
JwtBuilder.setHeader(Header header) |
Sets (and replaces) any existing header with the specified header.
|
Modifier and Type | Method | Description |
---|---|---|
T |
JwtHandler.onClaimsJwt(Jwt<Header,Claims> jwt) |
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.onPlaintextJwt(Jwt<Header,String> jwt) |
This method is invoked when a
JwtParser determines that the parsed JWT is
a plaintext JWT. |
T |
JwtHandlerAdapter.onPlaintextJwt(Jwt<Header,String> jwt) |
Copyright © 2019. All rights reserved.