package com.qianwen.core.secure;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
|
@ApiModel(description = "认证信息")
|
/* loaded from: blade-starter-auth-9.3.0.0-SNAPSHOT.jar:org/springblade/core/secure/AuthInfo.class */
|
public class AuthInfo {
|
@ApiModelProperty("令牌")
|
private String accessToken;
|
@ApiModelProperty("令牌类型")
|
private String tokenType;
|
@ApiModelProperty("角色名")
|
private String authority;
|
@ApiModelProperty("用户名")
|
private String userName;
|
@ApiModelProperty("账号名")
|
private String account;
|
@ApiModelProperty("过期时间")
|
private long expiresIn;
|
@ApiModelProperty("头像")
|
private String avatar = "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png";
|
@ApiModelProperty("许可证")
|
private String license = "made by blade";
|
|
public void setAccessToken(final String accessToken) {
|
this.accessToken = accessToken;
|
}
|
|
public void setTokenType(final String tokenType) {
|
this.tokenType = tokenType;
|
}
|
|
public void setAvatar(final String avatar) {
|
this.avatar = avatar;
|
}
|
|
public void setAuthority(final String authority) {
|
this.authority = authority;
|
}
|
|
public void setUserName(final String userName) {
|
this.userName = userName;
|
}
|
|
public void setAccount(final String account) {
|
this.account = account;
|
}
|
|
public void setExpiresIn(final long expiresIn) {
|
this.expiresIn = expiresIn;
|
}
|
|
public void setLicense(final String license) {
|
this.license = license;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof AuthInfo) {
|
AuthInfo other = (AuthInfo) o;
|
if (other.canEqual(this) && getExpiresIn() == other.getExpiresIn()) {
|
Object this$accessToken = getAccessToken();
|
Object other$accessToken = other.getAccessToken();
|
if (this$accessToken == null) {
|
if (other$accessToken != null) {
|
return false;
|
}
|
} else if (!this$accessToken.equals(other$accessToken)) {
|
return false;
|
}
|
Object this$tokenType = getTokenType();
|
Object other$tokenType = other.getTokenType();
|
if (this$tokenType == null) {
|
if (other$tokenType != null) {
|
return false;
|
}
|
} else if (!this$tokenType.equals(other$tokenType)) {
|
return false;
|
}
|
Object this$avatar = getAvatar();
|
Object other$avatar = other.getAvatar();
|
if (this$avatar == null) {
|
if (other$avatar != null) {
|
return false;
|
}
|
} else if (!this$avatar.equals(other$avatar)) {
|
return false;
|
}
|
Object this$authority = getAuthority();
|
Object other$authority = other.getAuthority();
|
if (this$authority == null) {
|
if (other$authority != null) {
|
return false;
|
}
|
} else if (!this$authority.equals(other$authority)) {
|
return false;
|
}
|
Object this$userName = getUserName();
|
Object other$userName = other.getUserName();
|
if (this$userName == null) {
|
if (other$userName != null) {
|
return false;
|
}
|
} else if (!this$userName.equals(other$userName)) {
|
return false;
|
}
|
Object this$account = getAccount();
|
Object other$account = other.getAccount();
|
if (this$account == null) {
|
if (other$account != null) {
|
return false;
|
}
|
} else if (!this$account.equals(other$account)) {
|
return false;
|
}
|
Object this$license = getLicense();
|
Object other$license = other.getLicense();
|
return this$license == null ? other$license == null : this$license.equals(other$license);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof AuthInfo;
|
}
|
|
public int hashCode() {
|
long $expiresIn = getExpiresIn();
|
int result = (1 * 59) + ((int) (($expiresIn >>> 32) ^ $expiresIn));
|
Object $accessToken = getAccessToken();
|
int result2 = (result * 59) + ($accessToken == null ? 43 : $accessToken.hashCode());
|
Object $tokenType = getTokenType();
|
int result3 = (result2 * 59) + ($tokenType == null ? 43 : $tokenType.hashCode());
|
Object $avatar = getAvatar();
|
int result4 = (result3 * 59) + ($avatar == null ? 43 : $avatar.hashCode());
|
Object $authority = getAuthority();
|
int result5 = (result4 * 59) + ($authority == null ? 43 : $authority.hashCode());
|
Object $userName = getUserName();
|
int result6 = (result5 * 59) + ($userName == null ? 43 : $userName.hashCode());
|
Object $account = getAccount();
|
int result7 = (result6 * 59) + ($account == null ? 43 : $account.hashCode());
|
Object $license = getLicense();
|
return (result7 * 59) + ($license == null ? 43 : $license.hashCode());
|
}
|
|
public String toString() {
|
return "AuthInfo(accessToken=" + getAccessToken() + ", tokenType=" + getTokenType() + ", avatar=" + getAvatar() + ", authority=" + getAuthority() + ", userName=" + getUserName() + ", account=" + getAccount() + ", expiresIn=" + getExpiresIn() + ", license=" + getLicense() + ")";
|
}
|
|
public String getAccessToken() {
|
return this.accessToken;
|
}
|
|
public String getTokenType() {
|
return this.tokenType;
|
}
|
|
public String getAvatar() {
|
return this.avatar;
|
}
|
|
public String getAuthority() {
|
return this.authority;
|
}
|
|
public String getUserName() {
|
return this.userName;
|
}
|
|
public String getAccount() {
|
return this.account;
|
}
|
|
public long getExpiresIn() {
|
return this.expiresIn;
|
}
|
|
public String getLicense() {
|
return this.license;
|
}
|
}
|