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

org.keycloak.models.credential.dto.RecoveryAuthnCodesSecretData Maven / Gradle / Ivy

There is a newer version: 26.0.5
Show newest version
package org.keycloak.models.credential.dto;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class RecoveryAuthnCodesSecretData {

    private final List codes;

    @JsonCreator
    public RecoveryAuthnCodesSecretData(@JsonProperty("codes") List codes) {
        this.codes = codes;
    }

    public List getCodes() {
        return this.codes;
    }

    public void removeNextBackupCode() {
        this.codes.remove(0);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy