View Javadoc

1   /*
2    *  Licensed to the Apache Software Foundation (ASF) under one
3    *  or more contributor license agreements.  See the NOTICE file
4    *  distributed with this work for additional information
5    *  regarding copyright ownership.  The ASF licenses this file
6    *  to you under the Apache License, Version 2.0 (the
7    *  "License"); you may not use this file except in compliance
8    *  with the License.  You may obtain a copy of the License at
9    *  
10   *    http://www.apache.org/licenses/LICENSE-2.0
11   *  
12   *  Unless required by applicable law or agreed to in writing,
13   *  software distributed under the License is distributed on an
14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   *  KIND, either express or implied.  See the License for the
16   *  specific language governing permissions and limitations
17   *  under the License. 
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.messages.ApplicationRequest;
25  import org.apache.directory.server.kerberos.shared.messages.components.Authenticator;
26  import org.apache.directory.server.kerberos.shared.messages.components.Ticket;
27  import org.apache.directory.server.kerberos.shared.replay.ReplayCache;
28  import org.apache.directory.server.kerberos.shared.store.PrincipalStoreEntry;
29  
30  
31  /**
32   * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
33   * @version $Rev: 550017 $, $Date: 2007-06-23 09:24:40 +0200 (Sa, 23 Jun 2007) $
34   */
35  public class TicketGrantingContext extends KdcContext
36  {
37      private static final long serialVersionUID = 2130665703752837491L;
38  
39      private ApplicationRequest authHeader;
40      private Ticket tgt;
41      private Ticket newTicket;
42      private Authenticator authenticator;
43      private ReplayCache replayCache;
44  
45      private PrincipalStoreEntry ticketPrincipalEntry;
46      private PrincipalStoreEntry requestPrincipalEntry;
47  
48  
49      /**
50       * @return Returns the requestPrincipalEntry.
51       */
52      public PrincipalStoreEntry getRequestPrincipalEntry()
53      {
54          return requestPrincipalEntry;
55      }
56  
57  
58      /**
59       * @param requestPrincipalEntry The requestPrincipalEntry to set.
60       */
61      public void setRequestPrincipalEntry( PrincipalStoreEntry requestPrincipalEntry )
62      {
63          this.requestPrincipalEntry = requestPrincipalEntry;
64      }
65  
66  
67      /**
68       * @return Returns the ticketPrincipalEntry.
69       */
70      public PrincipalStoreEntry getTicketPrincipalEntry()
71      {
72          return ticketPrincipalEntry;
73      }
74  
75  
76      /**
77       * @param ticketPrincipalEntry The ticketPrincipalEntry to set.
78       */
79      public void setTicketPrincipalEntry( PrincipalStoreEntry ticketPrincipalEntry )
80      {
81          this.ticketPrincipalEntry = ticketPrincipalEntry;
82      }
83  
84  
85      /**
86       * @return Returns the replayCache.
87       */
88      public ReplayCache getReplayCache()
89      {
90          return replayCache;
91      }
92  
93  
94      /**
95       * @param replayCache The replayCache to set.
96       */
97      public void setReplayCache( ReplayCache replayCache )
98      {
99          this.replayCache = replayCache;
100     }
101 
102 
103     /**
104      * @return Returns the authenticator.
105      */
106     public Authenticator getAuthenticator()
107     {
108         return authenticator;
109     }
110 
111 
112     /**
113      * @param authenticator The authenticator to set.
114      */
115     public void setAuthenticator( Authenticator authenticator )
116     {
117         this.authenticator = authenticator;
118     }
119 
120 
121     /**
122      * @return Returns the newTicket.
123      */
124     public Ticket getNewTicket()
125     {
126         return newTicket;
127     }
128 
129 
130     /**
131      * @param newTicket The newTicket to set.
132      */
133     public void setNewTicket( Ticket newTicket )
134     {
135         this.newTicket = newTicket;
136     }
137 
138 
139     /**
140      * @return Returns the tgt.
141      */
142     public Ticket getTgt()
143     {
144         return tgt;
145     }
146 
147 
148     /**
149      * @param tgt The tgt to set.
150      */
151     public void setTgt( Ticket tgt )
152     {
153         this.tgt = tgt;
154     }
155 
156 
157     /**
158      * @return Returns the authHeader.
159      */
160     public ApplicationRequest getAuthHeader()
161     {
162         return authHeader;
163     }
164 
165 
166     /**
167      * @param authHeader The authHeader to set.
168      */
169     public void setAuthHeader( ApplicationRequest authHeader )
170     {
171         this.authHeader = authHeader;
172     }
173 }