cn.antcore.security.session.SessionIdStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-security Show documentation
Show all versions of spring-boot-starter-security Show documentation
This is spring-boot-starter-security.
The newest version!
package cn.antcore.security.session;
import javax.servlet.http.HttpServletRequest;
/**
* SessionId创建策略
*
* Created by Hong.
* 2021/3/24
**/
public interface SessionIdStrategy {
/**
* 获取Session名字
* @return Session名字
*/
String getSessionName();
/**
* 获取请求的SessionId
* @param request HttpServletRequest
* @return SessionId
*/
String getSessionId(HttpServletRequest request);
/**
* 创建SessionId
* @return SessionId
* @param request
*/
String createSessionId(HttpServletRequest request);
}