Package | Description |
---|---|
io.jsonwebtoken | |
io.jsonwebtoken.impl | |
io.jsonwebtoken.impl.compression |
Modifier and Type | Interface and 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 and Description |
---|---|
interface |
JwsHeader<T extends JwsHeader<T>>
A JWS header.
|
Modifier and Type | Method and 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 and 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 and Description |
---|---|
CompressionCodec |
CompressionCodecResolver.resolveCompressionCodec(Header header)
Looks for a JWT
calg 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 and Description |
---|---|
T |
JwtHandlerAdapter.onClaimsJwt(Jwt<Header,Claims> jwt) |
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.onPlaintextJwt(Jwt<Header,String> jwt) |
T |
JwtHandler.onPlaintextJwt(Jwt<Header,String> jwt)
This method is invoked when a
JwtParser determines that the parsed JWT is
a plaintext JWT. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultHeader<T extends Header<T>> |
Modifier and Type | Class and Description |
---|---|
class |
DefaultHeader<T extends Header<T>> |
class |
DefaultJwsHeader |
Modifier and Type | Method and Description |
---|---|
protected Header |
DefaultJwtBuilder.ensureHeader() |
Header |
DefaultJwt.getHeader() |
Modifier and Type | Method and Description |
---|---|
Jwt<Header,Claims> |
DefaultJwtParser.parseClaimsJwt(String claimsJwt) |
Jwt<Header,String> |
DefaultJwtParser.parsePlaintextJwt(String plaintextJwt) |
Modifier and Type | Method and Description |
---|---|
JwtBuilder |
DefaultJwtBuilder.setHeader(Header header) |
Constructor and Description |
---|
DefaultJwt(Header header,
B body) |
Modifier and Type | Method and Description |
---|---|
CompressionCodec |
DefaultCompressionCodecResolver.resolveCompressionCodec(Header header) |
Copyright © 2018. All rights reserved.