
io.getlime.security.powerauth.lib.nextstep.model.response.UpdateCredentialPolicyResponse Maven / Gradle / Ivy
The newest version!
/*
* PowerAuth Web Flow and related software components
* Copyright (C) 2021 Wultra s.r.o.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package io.getlime.security.powerauth.lib.nextstep.model.response;
import io.getlime.security.powerauth.lib.nextstep.model.entity.CredentialGenerationParam;
import io.getlime.security.powerauth.lib.nextstep.model.entity.CredentialValidationParam;
import io.getlime.security.powerauth.lib.nextstep.model.entity.UsernameGenerationParam;
import io.getlime.security.powerauth.lib.nextstep.model.entity.enumeration.CredentialPolicyStatus;
import io.getlime.security.powerauth.lib.nextstep.model.enumeration.CredentialGenerationAlgorithm;
import io.getlime.security.powerauth.lib.nextstep.model.enumeration.UsernameGenerationAlgorithm;
import jakarta.validation.constraints.*;
import lombok.Data;
/**
* Response object used for updating a credential policy.
*
* @author Roman Strobl, [email protected]
*/
@Data
public class UpdateCredentialPolicyResponse {
@NotBlank
@Size(min = 2, max = 256)
private String credentialPolicyName;
@Size(min = 2, max = 256)
private String description;
@Positive
private Integer usernameLengthMin;
@Positive
private Integer usernameLengthMax;
@Size(min = 2, max = 256)
private String usernameAllowedPattern;
@Positive
private Integer credentialLengthMin;
@Positive
private Integer credentialLengthMax;
@Positive
private Integer limitSoft;
@Positive
private Integer limitHard;
@NotNull
@PositiveOrZero
private int checkHistoryCount;
@NotNull
private boolean rotationEnabled;
@Positive
private Integer rotationDays;
@Positive
private Integer temporaryCredentialExpirationTime;
@NotNull
private UsernameGenerationAlgorithm usernameGenAlgorithm;
@NotNull
private UsernameGenerationParam usernameGenParam;
@NotNull
private CredentialGenerationAlgorithm credentialGenAlgorithm;
@NotNull
private CredentialGenerationParam credentialGenParam;
@NotNull
private CredentialValidationParam credentialValParam;
@NotNull
private CredentialPolicyStatus credentialPolicyStatus;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy