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.ticketgrant;
21
22
23 import org.apache.directory.server.kerberos.kdc.KdcContext;
24 import org.apache.directory.server.kerberos.shared.store.PrincipalStoreEntry;
25 import org.apache.directory.shared.kerberos.messages.ApReq;
26 import org.apache.directory.shared.kerberos.messages.Authenticator;
27 import org.apache.directory.shared.kerberos.messages.Ticket;
28
29
30
31
32
33 public class TicketGrantingContext extends KdcContext
34 {
35 private static final long serialVersionUID = 2130665703752837491L;
36
37 private ApReq authHeader;
38 private Ticket tgt;
39 private Ticket newTicket;
40 private Authenticator authenticator;
41
42 private PrincipalStoreEntry ticketPrincipalEntry;
43 private PrincipalStoreEntry requestPrincipalEntry;
44
45
46
47
48
49 public PrincipalStoreEntry getRequestPrincipalEntry()
50 {
51 return requestPrincipalEntry;
52 }
53
54
55
56
57
58 public void setRequestPrincipalEntry( PrincipalStoreEntry requestPrincipalEntry )
59 {
60 this.requestPrincipalEntry = requestPrincipalEntry;
61 }
62
63
64
65
66
67 public PrincipalStoreEntry getTicketPrincipalEntry()
68 {
69 return ticketPrincipalEntry;
70 }
71
72
73
74
75
76 public void setTicketPrincipalEntry( PrincipalStoreEntry ticketPrincipalEntry )
77 {
78 this.ticketPrincipalEntry = ticketPrincipalEntry;
79 }
80
81
82
83
84
85 public Authenticator getAuthenticator()
86 {
87 return authenticator;
88 }
89
90
91
92
93
94 public void setAuthenticator( Authenticator authenticator )
95 {
96 this.authenticator = authenticator;
97 }
98
99
100
101
102
103 public Ticket getNewTicket()
104 {
105 return newTicket;
106 }
107
108
109
110
111
112 public void setNewTicket( Ticket newTicket )
113 {
114 this.newTicket = newTicket;
115 }
116
117
118
119
120
121 public Ticket getTgt()
122 {
123 return tgt;
124 }
125
126
127
128
129
130 public void setTgt( Ticket tgt )
131 {
132 this.tgt = tgt;
133 }
134
135
136
137
138
139 public ApReq getAuthHeader()
140 {
141 return authHeader;
142 }
143
144
145
146
147
148 public void setAuthHeader( ApReq authHeader )
149 {
150 this.authHeader = authHeader;
151 }
152 }