All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.simter.jwt.Signer Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package tech.simter.jwt;

/**
 * JWT Signer.
 *
 * @author RJ
 * @since JDK1.8
 */
public interface Signer {
  /**
   * sign the data to base64 with the specific secret key.
   *
   * @param data the data to be signed
   * @param key  secret key
   * @return the signed data
   * @throws SignException if signed failed.
   */
  byte[] sign(byte[] data, byte[] key);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy