// Path: authrite-service/src/main/java/com/lewisd/authrite/auth/PasswordManagementConfiguration.java
// public class PasswordManagementConfiguration {
// 
//     public static final int MIN_LENGTH = 8;
//     public static final int MAX_LENGTH = 100;
// 
//     private int bcryptCost;
// 
//     @JsonProperty
//     public int getBcryptCost() {
//         return bcryptCost;
//     }
// 
//     @JsonProperty
//     public void setBcryptCost(final int bcryptCost) {
//         this.bcryptCost = bcryptCost;
//     }
// }


import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.lewisd.authrite.auth.PasswordManagementConfiguration;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
package com.lewisd.authrite.resources.requests;


public class PasswordChangeRequest {
    @NotEmpty
    private final String oldPassword;

    @NotEmpty
// Path: authrite-service/src/main/java/com/lewisd/authrite/auth/PasswordManagementConfiguration.java
// public class PasswordManagementConfiguration {
// 
//     public static final int MIN_LENGTH = 8;
//     public static final int MAX_LENGTH = 100;
// 
//     private int bcryptCost;
// 
//     @JsonProperty
//     public int getBcryptCost() {
//         return bcryptCost;
//     }
// 
//     @JsonProperty
//     public void setBcryptCost(final int bcryptCost) {
//         this.bcryptCost = bcryptCost;
//     }
// }


// Path: authrite-service/src/main/java/com/lewisd/authrite/resources/requests/PasswordChangeRequest.java
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.lewisd.authrite.auth.PasswordManagementConfiguration;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

package com.lewisd.authrite.resources.requests;


public class PasswordChangeRequest {
    @NotEmpty
    private final String oldPassword;

    @NotEmpty
    @Length(min = PasswordManagementConfiguration.MIN_LENGTH, max = PasswordManagementConfiguration.MAX_LENGTH)