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

org.wf.jwtp.provider.TokenStore Maven / Gradle / Ivy

The newest version!
package org.wf.jwtp.provider;

import java.util.List;

/**
 * 操作token的接口
 * Created by wangfan on 2018-12-28 上午 9:21.
 */
public interface TokenStore {

    String getTokenKey();

    Token createNewToken(String userId, String[] permissions, String[] roles);

    Token createNewToken(String userId, String[] permissions, String[] roles, long expire);

    int storeToken(Token token);

    Token findToken(String userId, String access_token);

    List findTokensByUserId(String userId);

    int removeToken(String userId, String access_token);

    int removeTokensByUserId(String userId);

    int updateRolesByUserId(String userId, String[] roles);

    int updatePermissionsByUserId(String userId, String[] permissions);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy