mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-23 01:39:35 +08:00
refactor: 优化
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.hswebframework.web.authorization.basic.web;
|
||||
|
||||
import org.hswebframework.web.authorization.Authentication;
|
||||
import org.hswebframework.web.authorization.token.ParsedToken;
|
||||
|
||||
/**
|
||||
@@ -14,6 +15,16 @@ public interface AuthorizedToken extends ParsedToken {
|
||||
*/
|
||||
String getUserId();
|
||||
|
||||
/**
|
||||
* 获取认证权限信息
|
||||
*
|
||||
* @return Authentication
|
||||
* @since 4.0.17
|
||||
*/
|
||||
default Authentication getAuthentication() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 令牌有效期,单位毫秒,-1为长期有效
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user