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

org.macrocloud.kernel.security.props.SecureProperties Maven / Gradle / Ivy

There is a newer version: 1.1.0-RELEASE
Show newest version
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