类 JwtTokenManager
java.lang.Object
com.alibaba.nacos.common.notify.listener.Subscriber<ServerConfigChangeEvent>
com.alibaba.nacos.plugin.auth.impl.token.impl.JwtTokenManager
- 所有已实现的接口:
TokenManager
JWT token manager.
- 作者:
- wfnuser, nkorange
-
字段概要
字段修饰符和类型字段说明private static final Stringprivate final AuthConfigsprivate NacosJwtParserprivate longToken validity time(seconds). -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private voidcreateToken(String userName) Create token.createToken(org.springframework.security.core.Authentication authentication) 已过时。org.springframework.security.core.AuthenticationgetAuthentication(String token) 已过时。longgetExpiredTimeInSeconds(String token) longgetTokenTtlInSeconds(String token) validate token.longvalidate token.voidonEvent(ServerConfigChangeEvent event) parseToken(String token) parse token.private voidvoidvalidateToken(String token) validate token.从类继承的方法 com.alibaba.nacos.common.notify.listener.Subscriber
executor, ignoreExpireEvent, scopeMatches
-
字段详细资料
-
AUTH_DISABLED_TOKEN
- 另请参阅:
-
tokenValidityInSeconds
private volatile long tokenValidityInSecondsToken validity time(seconds). -
jwtParser
-
authConfigs
-
-
构造器详细资料
-
JwtTokenManager
-
-
方法详细资料
-
processProperties
private void processProperties() -
createToken
@Deprecated public String createToken(org.springframework.security.core.Authentication authentication) 已过时。Create token.- 指定者:
createToken在接口中TokenManager- 参数:
authentication- auth info- 返回:
- token
-
createToken
Create token.- 指定者:
createToken在接口中TokenManager- 参数:
userName- auth info- 返回:
- token
-
getAuthentication
@Deprecated public org.springframework.security.core.Authentication getAuthentication(String token) throws AccessException 已过时。Get auth Info.- 指定者:
getAuthentication在接口中TokenManager- 参数:
token- token- 返回:
- auth info
- 抛出:
AccessException- access exception
-
validateToken
validate token.- 指定者:
validateToken在接口中TokenManager- 参数:
token- token- 抛出:
AccessException- access exception
-
parseToken
从接口复制的说明:TokenManagerparse token.- 指定者:
parseToken在接口中TokenManager- 参数:
token- token- 返回:
- nacos user object
- 抛出:
AccessException- access exception
-
getTokenValidityInSeconds
public long getTokenValidityInSeconds()从接口复制的说明:TokenManagervalidate token.- 指定者:
getTokenValidityInSeconds在接口中TokenManager- 返回:
- token validity in seconds
-
getTokenTtlInSeconds
从接口复制的说明:TokenManagervalidate token.- 指定者:
getTokenTtlInSeconds在接口中TokenManager- 参数:
token- token- 返回:
- token ttl in seconds
- 抛出:
AccessException- access exception
-
getExpiredTimeInSeconds
- 抛出:
AccessException
-
onEvent
- 指定者:
onEvent在类中Subscriber<ServerConfigChangeEvent>
-
subscribeType
- 指定者:
subscribeType在类中Subscriber<ServerConfigChangeEvent>
-
checkJwtParser
private void checkJwtParser()
-