1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.api.ldap.extras.controls.ppolicy;
21
22
23
24
25
26
27
28
29 public class PasswordPolicyResponseImpl implements PasswordPolicyResponse
30 {
31
32 private int timeBeforeExpiration = -1;
33
34
35 private int graceAuthNRemaining = -1;
36
37
38 private PasswordPolicyErrorEnum ppolicyError;
39
40
41
42
43
44 public int getTimeBeforeExpiration()
45 {
46 return timeBeforeExpiration;
47 }
48
49
50
51
52
53 public void setTimeBeforeExpiration( int timeBeforeExpiration )
54 {
55 this.timeBeforeExpiration = timeBeforeExpiration;
56 }
57
58
59
60
61
62 public int getGraceAuthNRemaining()
63 {
64 return graceAuthNRemaining;
65 }
66
67
68
69
70
71 public void setGraceAuthNRemaining( int graceAuthNRemaining )
72 {
73 this.graceAuthNRemaining = graceAuthNRemaining;
74 }
75
76
77
78
79
80 public PasswordPolicyErrorEnum getPasswordPolicyError()
81 {
82 return ppolicyError;
83 }
84
85
86
87
88
89 public void setPasswordPolicyError( PasswordPolicyErrorEnum ppolicyError )
90 {
91 this.ppolicyError = ppolicyError;
92 }
93
94
95 @Override
96 public String toString()
97 {
98 return "PasswordPolicyResponseImpl [timeBeforeExpiration=" + timeBeforeExpiration + ", graceAuthNRemaining="
99 + graceAuthNRemaining + ", ppolicyError=" + ppolicyError + "]";
100 }
101 }