Interface JwtEncoder

All Known Implementing Classes:
DefaultJwtEncoder

public interface JwtEncoder

Signs tokens.

Jwt jwt = encoder.encode(JwtEncoderParameters.from(claims));
String token = jwt.getTokenValue();
  • Method Summary

    Modifier and Type
    Method
    Description
    The signed token.
  • Method Details

    • encode

      Jwt encode(JwtEncoderParameters parameters)

      The signed token.

      • JwtEncodingException: when there is no key to sign it with