登录视频课程一讲demo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
798 B

4 years ago
package com.tptj.project.hg.sso;
import com.fr.decision.webservice.bean.authentication.LoginClientBean;
import java.util.HashSet;
import java.util.Set;
/**
* @author 秃破天际
* @version 10.0
* Created by 秃破天际 on 2021-05-12
* 登录客户端信息的扩展用于绑定额外的凭证
**/
public class SpLoginClientBean extends LoginClientBean {
private Set<String> tag = new HashSet<String>();
public boolean contain( String tag ){
return -1 != tag.indexOf(tag);
}
public void setTag(String tag) {
this.tag.add(tag);
}
public static SpLoginClientBean copy( LoginClientBean bean, String tag ){
SpLoginClientBean rt = new SpLoginClientBean();
BaseUtils.copy(bean,rt);
rt.setTag(tag);
return rt;
}
}