com.gitee.easyopen.jwt.JwtService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easyopen-mini Show documentation
Show all versions of easyopen-mini Show documentation
easyopen mini版,保留基本签名校验,文档功能。https://gitee.com/durcframework/easyopen
package com.gitee.easyopen.jwt;
import com.auth0.jwt.interfaces.Claim;
import java.util.Map;
/**
* @author tanghc
*/
public interface JwtService {
/**
* 创建jwt
* @param data
* 内容
* @return 返回jwt
* @throws Exception
*/
String createJWT(Map data);
/**
* 校验JWT字符串
*
* @param token jwt字符串
* @return 验证通过返回对象
* @throws Exception
*/
Map verfiyJWT(String token);
}