Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class SupplierJwtDecoder
- Object
- SupplierJwtDecoder
ImplementsJwtDecoder
A decoder that is made when the first token arrives, and then kept.
Making a decoder from an issuer’s address reads the issuer’s metadata over the network. Done at start-up, an issuer that is down stops the server from starting; done here, the server starts and the first tokens fail until the issuer is back.
JwtDecoder decoder = new SupplierJwtDecoder(() -> JwtDecoders.fromIssuerLocation(issuer));
Constructors
public SupplierJwtDecoder(Supplier<JwtDecoder> supplier) |
Methods
public Jwt decode(String token) | The token, once its signature has verified and its claims have passed the decoder’s validators. |
Inherited methods
Constructor details
SupplierJwtDecoder
public SupplierJwtDecoder(Supplier<JwtDecoder> supplier)Method details
decode
public Jwt decode(String token)The token, once its signature has verified and its claims have passed the decoder’s validators.
BadJwtException: when the token is not acceptable, with whyJwtException: when it could not be judged at all