public class AuthTokenGeneratorDefault extends Object implements AuthTokenGenerator
| 构造器和说明 |
|---|
AuthTokenGeneratorDefault(framework.config.SecurityConfig securityConfig,
org.springframework.cache.CacheManager cacheManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
isAllowUpdate(framework.security.token.AuthTokenInfo info)
是否需要更新,使用时间不超过1分钟则不重新生成
|
long |
newSid(long id)
创建新的SID
|
framework.security.token.AuthTokenInfo |
newToken(long id,
int duration,
long sid)
新的token,通常用于登录时
|
framework.security.token.AuthTokenInfo |
updateToken(framework.security.token.AuthTokenInfo tokenInfo)
更新token,通常用于令牌更新
|
public AuthTokenGeneratorDefault(framework.config.SecurityConfig securityConfig,
org.springframework.cache.CacheManager cacheManager)
public long newSid(long id)
AuthTokenGeneratornewSid 在接口中 AuthTokenGeneratorpublic framework.security.token.AuthTokenInfo newToken(long id,
int duration,
long sid)
AuthTokenGeneratornewToken 在接口中 AuthTokenGeneratorpublic framework.security.token.AuthTokenInfo updateToken(framework.security.token.AuthTokenInfo tokenInfo)
AuthTokenGeneratorupdateToken 在接口中 AuthTokenGeneratorprotected boolean isAllowUpdate(framework.security.token.AuthTokenInfo info)
info - Copyright © 2025. All rights reserved.