Interface Signer

All Known Implementing Classes:
ECSigner, HMACSigner, RSAPSSSigner, RSASigner, UnsecuredSigner

public interface Signer
JWT Signer.
Author:
Daniel DeGroff
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the algorithm supported by this signer.
    default String
    Return the kid used for this signer.
    byte[]
    sign(String payload)
    Sign the provided message and return the signature.
  • Method Details

    • getAlgorithm

      Algorithm getAlgorithm()
      Return the algorithm supported by this signer.
      Returns:
      the algorithm.
    • getKid

      default String getKid()
      Return the kid used for this signer.
      Returns:
      the kid
    • sign

      byte[] sign(String payload)
      Sign the provided message and return the signature.
      Parameters:
      payload - The JWT payload to sign.
      Returns:
      The message signature in a byte array.