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

tech.hdis.framework.security.properties.SecurityResponseProperties Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package tech.hdis.framework.security.properties;

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

/**
 * 认证与授权配置
 *
 * @author 黄志文
 */
@Component
@ConfigurationProperties(value = "hdis.response.security")
public class SecurityResponseProperties {
    /**
     * 默认未认证提示信息key
     */
    public static final String UNAUTHENTICATED_KEY = "hdis.response.security.unauthenticated";
    /**
     * 默认未授权提示信息key
     */
    public static final String UNAUTHORIZED_KEY = "hdis.response.security.unauthorized";

    /**
     * 默认未认证提示信息
     */
    public String unauthenticated = "请您登录";
    /**
     * 默认未授权提示信息
     */
    public String unauthorized = "您还没有权限";

    public String getUnauthenticated() {
        return unauthenticated;
    }

    public void setUnauthenticated(String unauthenticated) {
        this.unauthenticated = unauthenticated;
    }

    public String getUnauthorized() {
        return unauthorized;
    }

    public void setUnauthorized(String unauthorized) {
        this.unauthorized = unauthorized;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy