优化注释

This commit is contained in:
zhouhao
2017-09-13 14:40:59 +08:00
parent 8b6c0d8ba0
commit dfc6dd756a
2 changed files with 13 additions and 3 deletions

View File

@@ -1,8 +1,7 @@
package org.hswebframework.web.authorization.basic.web;
/**
* TODO 完成注释
*
* 已完成认证的令牌,如果返回此令牌,将直接使用{@link this#getUserId()}来绑定用户信息
* @author zhouhao
*/
public interface AuthorizedToken extends ParsedToken {

View File

@@ -4,12 +4,23 @@ import java.io.Serializable;
import java.util.Map;
/**
* Created by zhouhao on 2017/8/30.
* 生成好的令牌信息
* @author zhouhao
*/
public interface GeneratedToken extends Serializable {
/**
* 要响应的数据,可自定义想要的数据给调用者
* @return {@link Map}
*/
Map<String,Object> getResponse();
/**
* @return 令牌字符串,令牌具有唯一性,不可逆,不包含敏感信息
*/
String getToken();
/**
* @return 令牌有效期(单位毫秒)
*/
int getTimeout();
}