package com.njzscloud.common.security.config;

import cn.hutool.core.collection.CollUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.time.Duration;
import java.util.Set;

@Getter
@Setter
@ConfigurationProperties(prefix = "spring.security")
public class WebSecurityProperties {
    /**
     * TOKEN 过期时间,  ≤ 0-->永久,默认 0
     */
    private Duration tokenExp = Duration.ofMillis(0);
    /**
     * 不进行认证校验的路径, 按 Ant 格式匹配
     */
    private Set<String> authIgnores = CollUtil.empty(Set.class);

}
