类 TokenManagerDelegate
java.lang.Object
com.alibaba.nacos.plugin.auth.impl.token.TokenManagerDelegate
- 所有已实现的接口:
TokenManager
token manager delegate.
- 作者:
- majorhe
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createToken(String userName) Create token.createToken(org.springframework.security.core.Authentication authentication) Create token.org.springframework.security.core.AuthenticationgetAuthentication(String token) Get auth Info.private TokenManagerlonggetTokenTtlInSeconds(String token) validate token.longvalidate token.parseToken(String token) parse token.voidvalidateToken(String token) validate token.
-
字段详细资料
-
NACOS_AUTH_TOKEN_CACHING_ENABLED
- 另请参阅:
-
delegate
-
-
构造器详细资料
-
TokenManagerDelegate
-
-
方法详细资料
-
getExecuteTokenManager
-
createToken
public String createToken(org.springframework.security.core.Authentication authentication) throws AccessException 从接口复制的说明:TokenManagerCreate token.- 指定者:
createToken在接口中TokenManager- 参数:
authentication- auth info- 返回:
- token
- 抛出:
AccessException- access exception
-
createToken
从接口复制的说明:TokenManagerCreate token.- 指定者:
createToken在接口中TokenManager- 参数:
userName- auth info- 返回:
- token
- 抛出:
AccessException- access exception
-
getAuthentication
public org.springframework.security.core.Authentication getAuthentication(String token) throws AccessException 从接口复制的说明:TokenManagerGet auth Info.- 指定者:
getAuthentication在接口中TokenManager- 参数:
token- token- 返回:
- auth info
- 抛出:
AccessException- access exception
-
validateToken
从接口复制的说明:TokenManagervalidate token.- 指定者:
validateToken在接口中TokenManager- 参数:
token- token- 抛出:
AccessException- access exception
-
parseToken
从接口复制的说明:TokenManagerparse token.- 指定者:
parseToken在接口中TokenManager- 参数:
token- token- 返回:
- nacos user object
- 抛出:
AccessException- access exception
-
getTokenValidityInSeconds
从接口复制的说明:TokenManagervalidate token.- 指定者:
getTokenValidityInSeconds在接口中TokenManager- 返回:
- token validity in seconds
- 抛出:
AccessException- access exception
-
getTokenTtlInSeconds
从接口复制的说明:TokenManagervalidate token.- 指定者:
getTokenTtlInSeconds在接口中TokenManager- 参数:
token- token- 返回:
- token ttl in seconds
- 抛出:
AccessException- access exception
-