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.kdc;
21
22
23 import java.net.InetAddress;
24
25 import org.apache.directory.server.kerberos.shared.crypto.encryption.CipherTextHandler;
26 import org.apache.directory.server.kerberos.shared.crypto.encryption.EncryptionType;
27 import org.apache.directory.server.kerberos.shared.messages.KdcRequest;
28 import org.apache.directory.server.kerberos.shared.messages.KerberosMessage;
29 import org.apache.directory.server.kerberos.shared.store.PrincipalStore;
30
31
32
33
34
35
36 public class KdcContext
37 {
38 private static final long serialVersionUID = 6490030984626825108L;
39
40 private KdcServer config;
41 private PrincipalStore store;
42 private KdcRequest request;
43 private KerberosMessage reply;
44 private InetAddress clientAddress;
45 private CipherTextHandler cipherTextHandler;
46 private EncryptionType encryptionType;
47
48
49
50
51
52 public KdcServer getConfig()
53 {
54 return config;
55 }
56
57
58
59
60
61 public void setConfig( KdcServer config )
62 {
63 this.config = config;
64 }
65
66
67
68
69
70 public PrincipalStore getStore()
71 {
72 return store;
73 }
74
75
76
77
78
79 public void setStore( PrincipalStore store )
80 {
81 this.store = store;
82 }
83
84
85
86
87
88 public KdcRequest getRequest()
89 {
90 return request;
91 }
92
93
94
95
96
97 public void setRequest( KdcRequest request )
98 {
99 this.request = request;
100 }
101
102
103
104
105
106 public KerberosMessage getReply()
107 {
108 return reply;
109 }
110
111
112
113
114
115 public void setReply( KerberosMessage reply )
116 {
117 this.reply = reply;
118 }
119
120
121
122
123
124 public InetAddress getClientAddress()
125 {
126 return clientAddress;
127 }
128
129
130
131
132
133 public void setClientAddress( InetAddress clientAddress )
134 {
135 this.clientAddress = clientAddress;
136 }
137
138
139
140
141
142 public CipherTextHandler getCipherTextHandler()
143 {
144 return cipherTextHandler;
145 }
146
147
148
149
150
151 public void setCipherTextHandler( CipherTextHandler cipherTextHandler )
152 {
153 this.cipherTextHandler = cipherTextHandler;
154 }
155
156
157
158
159
160
161
162 public EncryptionType getEncryptionType()
163 {
164 return encryptionType;
165 }
166
167
168
169
170
171
172
173 public void setEncryptionType( EncryptionType encryptionType )
174 {
175 this.encryptionType = encryptionType;
176 }
177 }