package com.ruoyi.web.modules.screen.support;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 大屏免密登录配置 {@code bigscreen.login.*}
 */
@ConfigurationProperties(prefix = "bigscreen.login")
public class ScreenLoginProperties
{
    /** 是否启用大屏免密登录 */
    private boolean enabled = false;

    /** RSA 公钥（Base64，与 JSEncrypt 兼容） */
    private String rsaPublicKey = "";

    /** RSA 私钥（Base64，服务端解密用，勿暴露给前端） */
    private String rsaPrivateKey = "";

    /** 专用大屏账号（须预置 sys_user 且未删除、未停用；权限由服务端注入 bigScreen:*:*） */
    private String username = "screen_viewer";

    public boolean isEnabled()
    {
        return enabled;
    }

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

    public String getRsaPublicKey()
    {
        return rsaPublicKey;
    }

    public void setRsaPublicKey(String rsaPublicKey)
    {
        this.rsaPublicKey = rsaPublicKey;
    }

    public String getRsaPrivateKey()
    {
        return rsaPrivateKey;
    }

    public void setRsaPrivateKey(String rsaPrivateKey)
    {
        this.rsaPrivateKey = rsaPrivateKey;
    }

    public String getUsername()
    {
        return username;
    }

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