01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package edu.yale.its.tp.cas.ticket;
17:
18: import java.util.List;
19:
20: /**
21: * Represents a CAS proxy ticket (PT).
22: */
23: public class ProxyTicket extends ServiceTicket {
24:
25: // *********************************************************************
26: // ProxyTicket-specific private state
27:
28: private ProxyGrantingTicket grantor;
29:
30: // *********************************************************************
31: // Constructor
32:
33: /** Constructs a new, immutable proxy ticket. */
34: public ProxyTicket(ProxyGrantingTicket t, String service) {
35: /*
36: * By convention, a proxy ticket is never taken to proceed from an initial login. (That is, "renew=true" will always fail
37: * for a proxy ticket.) Because of this, we pass "false" to the parent class's constructor.
38: */
39: super (t, service, false);
40: this .grantor = t;
41: }
42:
43: // *********************************************************************
44: // ProxyTicket-specific public interface
45:
46: /** Retrieves the proxy ticket's lineage -- its chain of "trust." */
47: public List getProxies() {
48: return grantor.getProxies();
49: }
50:
51: }
|