类 JwtAuthenticationImpl
- java.lang.Object
-
- top.daxian1218.dust.service.security.jwt.JwtAuthenticationImpl
-
- 所有已实现的接口:
IAuthentication
public class JwtAuthenticationImpl extends java.lang.Object implements IAuthentication
-
-
字段概要
字段 修饰符和类型 字段 说明 protected DustMsProperties
dustMsProperties
-
从接口继承的字段 top.daxian1218.dust.service.security.jwt.IAuthentication
AUTHORIZATION_HEADER, AUTHORIZATION_PARAMETER, AUTHORIZE_ERROR, TOKEN_BEARER_PREFIX
-
-
构造器概要
构造器 构造器 说明 JwtAuthenticationImpl(DustMsProperties dustMsProperties)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected DustAuthentication
bearer2Authentication(java.lang.String token)
token转化为Authorization对象java.lang.String
createRefreshToken(org.springframework.security.core.Authentication authentication)
java.lang.String
createToken(org.springframework.security.core.Authentication authentication, java.lang.Boolean rememberMe)
java.lang.String
getSecretKey()
long
getTokenValidityInSeconds()
long
getTokenValidityInSecondsForRememberMe()
boolean
isEnable()
boolean
isJsonToken()
protected DustAuthentication
json2Authentication(java.lang.String token)
JSON转化为DustAuthenticationprotected void
resolveSysParam(javax.servlet.http.HttpServletRequest req, DustUser dustUser)
protected java.lang.String
resolveToken(javax.servlet.http.HttpServletRequest request)
boolean
validateRequest(javax.servlet.http.HttpServletRequest request)
boolean
validateRequestByDust(javax.servlet.http.HttpServletRequest request)
-
-
-
字段详细资料
-
dustMsProperties
protected DustMsProperties dustMsProperties
-
-
构造器详细资料
-
JwtAuthenticationImpl
public JwtAuthenticationImpl(DustMsProperties dustMsProperties)
-
-
方法详细资料
-
validateRequest
public boolean validateRequest(javax.servlet.http.HttpServletRequest request)
- 指定者:
validateRequest
在接口中IAuthentication
-
validateRequestByDust
public boolean validateRequestByDust(javax.servlet.http.HttpServletRequest request)
-
createToken
public java.lang.String createToken(org.springframework.security.core.Authentication authentication, java.lang.Boolean rememberMe)
- 指定者:
createToken
在接口中IAuthentication
-
createRefreshToken
public java.lang.String createRefreshToken(org.springframework.security.core.Authentication authentication)
- 指定者:
createRefreshToken
在接口中IAuthentication
-
json2Authentication
protected DustAuthentication json2Authentication(java.lang.String token)
JSON转化为DustAuthentication- 参数:
token
-- 返回:
-
bearer2Authentication
protected DustAuthentication bearer2Authentication(java.lang.String token)
token转化为Authorization对象- 参数:
token
-
-
resolveToken
protected java.lang.String resolveToken(javax.servlet.http.HttpServletRequest request)
-
resolveSysParam
protected void resolveSysParam(javax.servlet.http.HttpServletRequest req, DustUser dustUser)
-
isEnable
public boolean isEnable()
-
getSecretKey
public java.lang.String getSecretKey()
-
getTokenValidityInSeconds
public long getTokenValidityInSeconds()
-
getTokenValidityInSecondsForRememberMe
public long getTokenValidityInSecondsForRememberMe()
-
isJsonToken
public boolean isJsonToken()
-
-