Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface JwtEncoder
Known subtypesDefaultJwtEncoder
Signs tokens.
Jwt jwt = encoder.encode(JwtEncoderParameters.from(claims));
String token = jwt.getTokenValue();
Methods
public abstract Jwt encode(JwtEncoderParameters parameters) | The signed token. |
Method details
encode
public abstract Jwt encode(JwtEncoderParameters parameters)The signed token.
JwtEncodingException: when there is no key to sign it with