1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.shared.kerberos.components;
21
22
23 import org.apache.directory.shared.kerberos.KerberosTime;
24 import org.apache.directory.shared.kerberos.codec.types.LastReqType;
25
26
27
28
29
30
31 public class LastReqEntry
32 {
33
34 private LastReqType lrType;
35
36
37 private KerberosTime lrValue;
38
39
40
41
42
43 public LastReqEntry()
44 {
45 }
46
47
48
49
50
51
52
53 public LastReqEntry( LastReqType lrType, KerberosTime lrValue )
54 {
55 this.lrType = lrType;
56 this.lrValue = lrValue;
57 }
58
59
60
61
62
63 public LastReqType getLrType()
64 {
65 return lrType;
66 }
67
68
69
70
71
72 public void setLrType( LastReqType lrType )
73 {
74 this.lrType = lrType;
75 }
76
77
78
79
80
81 public KerberosTime getLrValue()
82 {
83 return lrValue;
84 }
85
86
87
88
89
90 public void setLrValue( KerberosTime lrValue )
91 {
92 this.lrValue = lrValue;
93 }
94
95
96
97
98
99 public String toString( String tabs )
100 {
101 StringBuilder sb = new StringBuilder();
102
103 sb.append( tabs ).append( "LastRequestEntry : {\n" );
104 sb.append( tabs ).append( " lrType : " ).append( lrType ).append( "\n" );
105 sb.append( tabs ).append( " lrValue : " ).append( lrValue ).append( "\n" );
106 sb.append( tabs ).append( "}" );
107
108 return sb.toString();
109 }
110
111
112
113
114
115 public String toString()
116 {
117 return toString( "" );
118 }
119 }