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

com.gitee.easyopen.jwt.JwtService Maven / Gradle / Ivy

package com.gitee.easyopen.jwt;

import java.util.Map;

import com.auth0.jwt.interfaces.Claim;
import com.gitee.easyopen.HasConfig;

public interface JwtService extends HasConfig{

    /**
     * @param apiConfig
     *            配置
     * @param data
     *            内容
     * @return 返回jwt
     * @throws Exception
     */
    String createJWT(Map data);

    /**
     * 校验JWT字符串
     * 
     * @param token
     * @return 验证通过返回对象
     * @throws Exception
     */
    Map verfiyJWT(String token);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy