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 @Override
45 public int getTimeBeforeExpiration()
46 {
47 return timeBeforeExpiration;
48 }
49
50
51
52
53
54 @Override
55 public void setTimeBeforeExpiration( int timeBeforeExpiration )
56 {
57 this.timeBeforeExpiration = timeBeforeExpiration;
58 }
59
60
61
62
63
64 @Override
65 public int getGraceAuthNRemaining()
66 {
67 return graceAuthNRemaining;
68 }
69
70
71
72
73
74 @Override
75 public void setGraceAuthNRemaining( int graceAuthNRemaining )
76 {
77 this.graceAuthNRemaining = graceAuthNRemaining;
78 }
79
80
81
82
83
84 @Override
85 public PasswordPolicyErrorEnum getPasswordPolicyError()
86 {
87 return ppolicyError;
88 }
89
90
91
92
93
94 @Override
95 public void setPasswordPolicyError( PasswordPolicyErrorEnum ppolicyError )
96 {
97 this.ppolicyError = ppolicyError;
98 }
99
100
101 @Override
102 public String toString()
103 {
104 return "PasswordPolicyResponse [timeBeforeExpiration=" + timeBeforeExpiration + ", graceAuthNRemaining="
105 + graceAuthNRemaining + ", ppolicyError=" + ppolicyError + "]";
106 }
107 }