refactor: 优化

This commit is contained in:
zhouhao
2024-03-15 16:22:25 +08:00
parent e579777c7f
commit bc7d3f2527
5 changed files with 182 additions and 150 deletions

View File

@@ -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为长期有效
*/