-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathPasswordRequirements.java
More file actions
167 lines (134 loc) · 4.64 KB
/
PasswordRequirements.java
File metadata and controls
167 lines (134 loc) · 4.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*
* Copyright (c) Mirth Corporation. All rights reserved.
*
* http://www.mirthcorp.com
*
* The software in this package is published under the terms of the MPL license a copy of which has
* been included with this distribution in the LICENSE.txt file.
*/
package com.mirth.connect.model;
import java.io.Serializable;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("passwordRequirements")
public class PasswordRequirements implements Serializable {
private static final long serialVersionUID = 1L;
private int minLength;
private int minUpper;
private int minLower;
private int minNumeric;
private int minSpecial;
private int retryLimit;
private int lockoutPeriod;
private int expiration;
private int gracePeriod;
private int reusePeriod;
private int reuseLimit;
private boolean allowUsernameEnumeration;
public PasswordRequirements() {
this.minLength = 0;
this.minUpper = 0;
this.minLower = 0;
this.minNumeric = 0;
this.minSpecial = 0;
this.retryLimit = 0;
this.lockoutPeriod = 0;
this.expiration = 0;
this.gracePeriod = 0;
this.reusePeriod = 0;
this.reuseLimit = 0;
this.allowUsernameEnumeration = false;
}
/**
* @deprecated Use {@link #PasswordRequirements(int, int, int, int, int, int, int, int, int, int, int, boolean)} instead.
*/
@Deprecated
public PasswordRequirements(int minLength, int minUpper, int minLower, int minNumeric, int minSpecial, int retryLimit, int lockoutPeriod, int expiration, int gracePeriod, int reusePeriod, int reuseLimit) {
this(minLength, minUpper, minLower, minNumeric, minSpecial, retryLimit, lockoutPeriod, expiration, gracePeriod, reusePeriod, reuseLimit, false);
}
public PasswordRequirements(int minLength, int minUpper, int minLower, int minNumeric, int minSpecial, int retryLimit, int lockoutPeriod, int expiration, int gracePeriod, int reusePeriod, int reuseLimit, boolean allowUsernameEnumeration) {
this.minLength = minLength;
this.minUpper = minUpper;
this.minLower = minLower;
this.minNumeric = minNumeric;
this.minSpecial = minSpecial;
this.retryLimit = retryLimit;
this.lockoutPeriod = lockoutPeriod;
this.expiration = expiration;
this.gracePeriod = gracePeriod;
this.reusePeriod = reusePeriod;
this.reuseLimit = reuseLimit;
this.allowUsernameEnumeration = allowUsernameEnumeration;
}
public int getMinLength() {
return minLength;
}
public void setMinLength(int minLength) {
this.minLength = minLength;
}
public int getMinUpper() {
return minUpper;
}
public void setMinUpper(int minUpper) {
this.minUpper = minUpper;
}
public int getMinLower() {
return minLower;
}
public void setMinLower(int minLower) {
this.minLower = minLower;
}
public int getMinNumeric() {
return minNumeric;
}
public void setMinNumeric(int minNumeric) {
this.minNumeric = minNumeric;
}
public int getMinSpecial() {
return minSpecial;
}
public void setMinSpecial(int minSpecial) {
this.minSpecial = minSpecial;
}
public int getRetryLimit() {
return retryLimit;
}
public void setRetryLimit(int retryLimit) {
this.retryLimit = retryLimit;
}
public int getLockoutPeriod() {
return lockoutPeriod;
}
public void setLockoutPeriod(int lockoutPeriod) {
this.lockoutPeriod = lockoutPeriod;
}
public int getExpiration() {
return expiration;
}
public void setExpiration(int expiration) {
this.expiration = expiration;
}
public int getGracePeriod() {
return gracePeriod;
}
public void setGracePeriod(int gracePeriod) {
this.gracePeriod = gracePeriod;
}
public int getReusePeriod() {
return reusePeriod;
}
public void setReusePeriod(int reusePeriod) {
this.reusePeriod = reusePeriod;
}
public int getReuseLimit() {
return reuseLimit;
}
public void setReuseLimit(int reuseLimit) {
this.reuseLimit = reuseLimit;
}
public boolean getAllowUsernameEnumeration() {
return allowUsernameEnumeration;
}
public void setAllowUsernameEnumeration(boolean allowUsernameEnumeration) {
this.allowUsernameEnumeration = allowUsernameEnumeration;
}
}