All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yanyun.auth.model.SystemUserModel Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package com.yanyun.auth.model;

import java.io.Serializable;

public class SystemUserModel implements Serializable {
    //用户登录名
    private String username;
    //用户密码
    private String password;
    //账户是否未过期
    private boolean accountNonExpired=true;
    //账户是否未锁定
    private boolean accountNonLocked=true;
    //密码是否未过期
    private boolean credentialsNonExpired=true;
    //用户是否可用
    private boolean enabled=true;
    //用户权限信息(为JSON字符串):JSON格式: {"roles":["role1","role2","role3"]}
    private String roleAuth;
    //用户自定义信息(为JSON字符串):JSON格式:{"key1":"value1","key2":"value2"}
    private String customInfo;
    //用户对应的系统ClientId
    private String clientId;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isAccountNonExpired() {
        return accountNonExpired;
    }

    public void setAccountNonExpired(boolean accountNonExpired) {
        this.accountNonExpired = accountNonExpired;
    }

    public boolean isAccountNonLocked() {
        return accountNonLocked;
    }

    public void setAccountNonLocked(boolean accountNonLocked) {
        this.accountNonLocked = accountNonLocked;
    }

    public boolean isCredentialsNonExpired() {
        return credentialsNonExpired;
    }

    public void setCredentialsNonExpired(boolean credentialsNonExpired) {
        this.credentialsNonExpired = credentialsNonExpired;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getRoleAuth() {
        return roleAuth;
    }

    public void setRoleAuth(String roleAuth) {
        this.roleAuth = roleAuth;
    }

    public String getCustomInfo() {
        return customInfo;
    }

    public void setCustomInfo(String customInfo) {
        this.customInfo = customInfo;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    @Override
    public String toString() {
        return "SystemUserModel{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", accountNonExpired=" + accountNonExpired +
                ", accountNonLocked=" + accountNonLocked +
                ", credentialsNonExpired=" + credentialsNonExpired +
                ", enabled=" + enabled +
                ", roleAuth='" + roleAuth + '\'' +
                ", customInfo='" + customInfo + '\'' +
                ", clientId='" + clientId + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy