shz.spring.token.TokenService Maven / Gradle / Ivy
package shz.spring.token;
import shz.spring.session.Session;
import javax.servlet.http.HttpServletRequest;
public interface TokenService {
String generate(Session session);
String getToken(HttpServletRequest request);
TokenIdentity getTokenIdentity(String token);
TokenIdentity getTokenIdentity(HttpServletRequest request);
TokenInfo getTokenInfo(TokenIdentity tokenIdentity);
TokenInfo getTokenInfo(HttpServletRequest request);
boolean verify(TokenInfo tokenInfo, Session session);
boolean isLogin(TokenInfo tokenInfo);
boolean isLogin(Session session);
void logout(Long userid);
void logout();
boolean refresh(Long userid);
boolean refresh();
String signData(Session session);
String signData(HttpServletRequest request);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy