1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.server.kerberos.shared.messages.value;
21
22
23 import java.util.Set;
24
25 import javax.security.auth.kerberos.KerberosPrincipal;
26
27 import org.apache.directory.server.kerberos.shared.crypto.encryption.EncryptionType;
28 import org.apache.directory.server.kerberos.shared.messages.components.Ticket;
29
30
31
32
33
34
35 public class RequestBody
36 {
37 private KdcOptions kdcOptions;
38 private KerberosPrincipal clientPrincipal;
39 private KerberosPrincipal serverPrincipal;
40 private KerberosTime from;
41 private KerberosTime till;
42 private KerberosTime rtime;
43 private int nonce;
44 private Set<EncryptionType> eType;
45 private HostAddresses addresses;
46 private EncryptedData encAuthorizationData;
47 private Ticket[] additionalTickets;
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65 public RequestBody( KdcOptions kdcOptions, KerberosPrincipal clientPrincipal, KerberosPrincipal serverPrincipal,
66 KerberosTime from, KerberosTime till, KerberosTime rtime, int nonce, Set<EncryptionType> eType,
67 HostAddresses addresses, EncryptedData encAuthorizationData, Ticket[] additionalTickets )
68 {
69 this.kdcOptions = kdcOptions;
70 this.clientPrincipal = clientPrincipal;
71 this.serverPrincipal = serverPrincipal;
72 this.from = from;
73 this.till = till;
74 this.rtime = rtime;
75 this.nonce = nonce;
76 this.eType = eType;
77 this.addresses = addresses;
78 this.encAuthorizationData = encAuthorizationData;
79 this.additionalTickets = additionalTickets;
80 }
81
82
83
84
85
86
87
88 public Ticket[] getAdditionalTickets()
89 {
90 return additionalTickets;
91 }
92
93
94
95
96
97
98
99 public HostAddresses getAddresses()
100 {
101 return addresses;
102 }
103
104
105
106
107
108
109
110 public KerberosPrincipal getClientPrincipal()
111 {
112 return clientPrincipal;
113 }
114
115
116
117
118
119
120
121 public KerberosPrincipal getServerPrincipal()
122 {
123 return serverPrincipal;
124 }
125
126
127
128
129
130
131
132 public EncryptedData getEncAuthorizationData()
133 {
134 return encAuthorizationData;
135 }
136
137
138
139
140
141
142
143 public Set<EncryptionType> getEType()
144 {
145 return eType;
146 }
147
148
149
150
151
152
153
154 public KerberosTime getFrom()
155 {
156 return from;
157 }
158
159
160
161
162
163
164
165 public KdcOptions getKdcOptions()
166 {
167 return kdcOptions;
168 }
169
170
171
172
173
174
175
176 public int getNonce()
177 {
178 return nonce;
179 }
180
181
182
183
184
185
186
187 public KerberosTime getRtime()
188 {
189 return rtime;
190 }
191
192
193
194
195
196
197
198 public KerberosTime getTill()
199 {
200 return till;
201 }
202 }