cn.bestwu.api.sign.ApiSignProperties Maven / Gradle / Ivy
package cn.bestwu.api.sign;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* 签名配置属性
*
* @author Peter Wu
*/
@ConfigurationProperties("api.sign")
@Getter @Setter
public class ApiSignProperties {
/**
* 管理员是否跳过验证
*/
private boolean skipAdmin = true;
/**
* 客户端ID参数名
*/
private String client_idParameter = "client_id";
/**
* 签名方式
*/
private ApiSignAspect.SignMode signMode = ApiSignAspect.SignMode.REQUEST_HEADER;
/**
* 签名参数名
*/
private String signParameter = "sign";
}