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 */ 020 package org.apache.directory.server.kerberos.kdc.ticketgrant; 021 022 023 import org.apache.directory.server.kerberos.kdc.KdcContext; 024 import org.apache.directory.server.kerberos.shared.messages.ApplicationRequest; 025 import org.apache.directory.server.kerberos.shared.messages.components.Authenticator; 026 import org.apache.directory.server.kerberos.shared.messages.components.Ticket; 027 import org.apache.directory.server.kerberos.shared.replay.ReplayCache; 028 import org.apache.directory.server.kerberos.shared.store.PrincipalStoreEntry; 029 030 031 /** 032 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 033 * @version $Rev: 550017 $, $Date: 2007-06-23 09:24:40 +0200 (Sat, 23 Jun 2007) $ 034 */ 035 public class TicketGrantingContext extends KdcContext 036 { 037 private static final long serialVersionUID = 2130665703752837491L; 038 039 private ApplicationRequest authHeader; 040 private Ticket tgt; 041 private Ticket newTicket; 042 private Authenticator authenticator; 043 private ReplayCache replayCache; 044 045 private PrincipalStoreEntry ticketPrincipalEntry; 046 private PrincipalStoreEntry requestPrincipalEntry; 047 048 049 /** 050 * @return Returns the requestPrincipalEntry. 051 */ 052 public PrincipalStoreEntry getRequestPrincipalEntry() 053 { 054 return requestPrincipalEntry; 055 } 056 057 058 /** 059 * @param requestPrincipalEntry The requestPrincipalEntry to set. 060 */ 061 public void setRequestPrincipalEntry( PrincipalStoreEntry requestPrincipalEntry ) 062 { 063 this.requestPrincipalEntry = requestPrincipalEntry; 064 } 065 066 067 /** 068 * @return Returns the ticketPrincipalEntry. 069 */ 070 public PrincipalStoreEntry getTicketPrincipalEntry() 071 { 072 return ticketPrincipalEntry; 073 } 074 075 076 /** 077 * @param ticketPrincipalEntry The ticketPrincipalEntry to set. 078 */ 079 public void setTicketPrincipalEntry( PrincipalStoreEntry ticketPrincipalEntry ) 080 { 081 this.ticketPrincipalEntry = ticketPrincipalEntry; 082 } 083 084 085 /** 086 * @return Returns the replayCache. 087 */ 088 public ReplayCache getReplayCache() 089 { 090 return replayCache; 091 } 092 093 094 /** 095 * @param replayCache The replayCache to set. 096 */ 097 public void setReplayCache( ReplayCache replayCache ) 098 { 099 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 }