org.macrocloud.kernel.security.props.SecureProperties Maven / Gradle / Ivy
package org.macrocloud.kernel.security.props;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.ArrayList;
import java.util.List;
/**
* 客户端校验配置
*
*/
@Data
@ConfigurationProperties("kernel.secure")
public class SecureProperties {
/**
* 开启鉴权规则
*/
private Boolean enabled = false;
/**
* 鉴权放行请求
*/
private final List skipUrl = new ArrayList<>();
/**
* 开启授权规则
*/
private Boolean authEnabled = true;
/**
* 授权配置
*/
private final List auth = new ArrayList<>();
/**
* 开启基础认证规则
*/
private Boolean basicEnabled = true;
/**
* 基础认证配置
*/
private final List basic = new ArrayList<>();
/**
* 开启签名认证规则
*/
private Boolean signEnabled = true;
/**
* 签名认证配置
*/
private final List sign = new ArrayList<>();
/**
* 开启客户端规则
*/
private Boolean clientEnabled = true;
/**
* 客户端配置
*/
private final List client = new ArrayList<>();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy