Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class JwtEncoderParameters

  1. Object
  2. JwtEncoderParameters
What a JwtEncoder is asked to sign: claims, and optionally a header.

Methods

public static JwtEncoderParameters from(JwtClaimsSet claims)These claims, signed with the encoder’s first key under the algorithm that key is for.
public static JwtEncoderParameters from(JwsHeader jwsHeader, JwtClaimsSet claims)These claims under this header.
public JwsHeader getJwsHeader()The header, or null for the encoder’s choice.
public JwtClaimsSet getClaims()

Inherited methods

Method details

from

public static JwtEncoderParameters from(JwtClaimsSet claims)
These claims, signed with the encoder’s first key under the algorithm that key is for.

from

public static JwtEncoderParameters from(JwsHeader jwsHeader, JwtClaimsSet claims)
These claims under this header.

getJwsHeader

public JwsHeader getJwsHeader()
The header, or null for the encoder’s choice.

getClaims

public JwtClaimsSet getClaims()