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

cn.authing.sdk.java.dto.SelfUnlockAccountConfigDto Maven / Gradle / Ivy

There is a newer version: 3.1.10
Show newest version
package cn.authing.sdk.java.dto;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;


public class SelfUnlockAccountConfigDto {
    /**
     * 是否允许用户自助解锁账号。
     */
    @JsonProperty("enabled")
    private Boolean enabled;
    /**
     * 自助解锁方式,目前支持原密码 + 验证码和验证码两种方式。
     */
    @JsonProperty("strategy")
    private Strategy strategy;

    public Boolean getEnabled() {
        return enabled;
    }
    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public Strategy getStrategy() {
        return strategy;
    }
    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }


    /**
     * 自助解锁方式,目前支持原密码 + 验证码和验证码两种方式。
     */
    public static enum Strategy {

        @JsonProperty("captcha")
        CAPTCHA("captcha"),

        @JsonProperty("password-captcha")
        PASSWORD_CAPTCHA("password-captcha"),
        ;

        private String value;

        Strategy(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy