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

cloud.agileframework.security.properties.StrengthProperties Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package cloud.agileframework.security.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;
import java.util.List;

/**
 * @author 佟盟
 * 日期 2020/8/00028 11:05
 * 描述 强度权重配置
 * @version 1.0
 * @since 1.0
 */
@ConfigurationProperties(prefix = "agile.security.password.strength-conf")
@Data
public class StrengthProperties implements Serializable {
    /**
     * 最大允许密码长度
     */
    private int maxLength = 32;
    /**
     * 正则权重
     */
    private double weightOfRegex = 0.65d;
    /**
     * 关键字权重
     */
    private double weightOfKeyWord;
    /**
     * 正则配置
     */
    private List weightOfRegexMap;
    /**
     * 关键字配置
     */
    private List weightOfKeyWords;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy