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

shz.spring.token.TokenService Maven / Gradle / Ivy

There is a newer version: 2023.2.5
Show newest version
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