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.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   * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
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       * @return Returns the requestPrincipalEntry.
48       */
49      public PrincipalStoreEntry getRequestPrincipalEntry()
50      {
51          return requestPrincipalEntry;
52      }
53  
54  
55      /**
56       * @param requestPrincipalEntry The requestPrincipalEntry to set.
57       */
58      public void setRequestPrincipalEntry( PrincipalStoreEntry requestPrincipalEntry )
59      {
60          this.requestPrincipalEntry = requestPrincipalEntry;
61      }
62  
63  
64      /**
65       * @return Returns the ticketPrincipalEntry.
66       */
67      public PrincipalStoreEntry getTicketPrincipalEntry()
68      {
69          return ticketPrincipalEntry;
70      }
71  
72  
73      /**
74       * @param ticketPrincipalEntry The ticketPrincipalEntry to set.
75       */
76      public void setTicketPrincipalEntry( PrincipalStoreEntry ticketPrincipalEntry )
77      {
78          this.ticketPrincipalEntry = ticketPrincipalEntry;
79      }
80  
81  
82      /**
83       * @return Returns the authenticator.
84       */
85      public Authenticator getAuthenticator()
86      {
87          return authenticator;
88      }
89  
90  
91      /**
92       * @param authenticator The authenticator to set.
93       */
94      public void setAuthenticator( Authenticator authenticator )
95      {
96          this.authenticator = authenticator;
97      }
98  
99  
100     /**
101      * @return Returns the newTicket.
102      */
103     public Ticket getNewTicket()
104     {
105         return newTicket;
106     }
107 
108 
109     /**
110      * @param newTicket The newTicket to set.
111      */
112     public void setNewTicket( Ticket newTicket )
113     {
114         this.newTicket = newTicket;
115     }
116 
117 
118     /**
119      * @return Returns the tgt.
120      */
121     public Ticket getTgt()
122     {
123         return tgt;
124     }
125 
126 
127     /**
128      * @param tgt The tgt to set.
129      */
130     public void setTgt( Ticket tgt )
131     {
132         this.tgt = tgt;
133     }
134 
135 
136     /**
137      * @return Returns the authHeader.
138      */
139     public ApReq getAuthHeader()
140     {
141         return authHeader;
142     }
143 
144 
145     /**
146      * @param authHeader The authHeader to set.
147      */
148     public void setAuthHeader( ApReq authHeader )
149     {
150         this.authHeader = authHeader;
151     }
152 }