001/*
002 *  Licensed to the Apache Software Foundation (ASF) under one
003 *  or more contributor license agreements.  See the NOTICE file
004 *  distributed with this work for additional information
005 *  regarding copyright ownership.  The ASF licenses this file
006 *  to you under the Apache License, Version 2.0 (the
007 *  "License"); you may not use this file except in compliance
008 *  with the License.  You may obtain a copy of the License at
009 *  
010 *    http://www.apache.org/licenses/LICENSE-2.0
011 *  
012 *  Unless required by applicable law or agreed to in writing,
013 *  software distributed under the License is distributed on an
014 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 *  KIND, either express or implied.  See the License for the
016 *  specific language governing permissions and limitations
017 *  under the License. 
018 *  
019 */
020package org.apache.directory.server.kerberos.kdc.ticketgrant;
021
022
023import org.apache.directory.server.kerberos.kdc.KdcContext;
024import org.apache.directory.server.kerberos.shared.store.PrincipalStoreEntry;
025import org.apache.directory.shared.kerberos.messages.ApReq;
026import org.apache.directory.shared.kerberos.messages.Authenticator;
027import org.apache.directory.shared.kerberos.messages.Ticket;
028
029
030/**
031 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
032 */
033public class TicketGrantingContext extends KdcContext
034{
035    private static final long serialVersionUID = 2130665703752837491L;
036
037    private ApReq authHeader;
038    private Ticket tgt;
039    private Ticket newTicket;
040    private Authenticator authenticator;
041
042    private PrincipalStoreEntry ticketPrincipalEntry;
043    private PrincipalStoreEntry requestPrincipalEntry;
044
045
046    /**
047     * @return Returns the requestPrincipalEntry.
048     */
049    public PrincipalStoreEntry getRequestPrincipalEntry()
050    {
051        return requestPrincipalEntry;
052    }
053
054
055    /**
056     * @param requestPrincipalEntry The requestPrincipalEntry to set.
057     */
058    public void setRequestPrincipalEntry( PrincipalStoreEntry requestPrincipalEntry )
059    {
060        this.requestPrincipalEntry = requestPrincipalEntry;
061    }
062
063
064    /**
065     * @return Returns the ticketPrincipalEntry.
066     */
067    public PrincipalStoreEntry getTicketPrincipalEntry()
068    {
069        return ticketPrincipalEntry;
070    }
071
072
073    /**
074     * @param ticketPrincipalEntry The ticketPrincipalEntry to set.
075     */
076    public void setTicketPrincipalEntry( PrincipalStoreEntry ticketPrincipalEntry )
077    {
078        this.ticketPrincipalEntry = ticketPrincipalEntry;
079    }
080
081
082    /**
083     * @return Returns the authenticator.
084     */
085    public Authenticator getAuthenticator()
086    {
087        return authenticator;
088    }
089
090
091    /**
092     * @param authenticator The authenticator to set.
093     */
094    public void setAuthenticator( Authenticator authenticator )
095    {
096        this.authenticator = authenticator;
097    }
098
099
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}