org.keycloak.models.credential.dto.RecoveryAuthnCodesSecretData Maven / Gradle / Ivy
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);
}
}