tech.simter.jwt.Signer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simter-jwt Show documentation
Show all versions of simter-jwt Show documentation
Pure Java implementation for JSON Web Token (JWT)
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);
}