Class UnsecuredSigner

java.lang.Object
io.fusionauth.jwt.UnsecuredSigner
All Implemented Interfaces:
Signer

public class UnsecuredSigner extends Object implements Signer
Unsecured signer. You should probably never use this signer.
Author:
Daniel DeGroff
  • Constructor Details

    • UnsecuredSigner

      public UnsecuredSigner()
  • Method Details

    • getAlgorithm

      public Algorithm getAlgorithm()
      Description copied from interface: Signer
      Return the algorithm supported by this signer.
      Specified by:
      getAlgorithm in interface Signer
      Returns:
      the algorithm.
    • getKid

      public String getKid()
      Description copied from interface: Signer
      Return the kid used for this signer.
      Specified by:
      getKid in interface Signer
      Returns:
      the kid
    • sign

      public byte[] sign(String payload)
      Description copied from interface: Signer
      Sign the provided message and return the signature.
      Specified by:
      sign in interface Signer
      Parameters:
      payload - The JWT payload to sign.
      Returns:
      The message signature in a byte array.