4 * Licensed to Jasig under one or more contributor license
5 * agreements. See the NOTICE file distributed with this work for
6 * additional information regarding copyright ownership.
8 * Jasig licenses this file to you under the Apache License,
9 * Version 2.0 (the "License"); you may not use this file except in
10 * compliance with the License. You may obtain a copy of the License at:
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 * @file CAS/ProxiedService.php
23 * @category Authentication
25 * @author Adam Franco <afranco@middlebury.edu>
26 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
27 * @link https://wiki.jasig.org/display/CASC/phpCAS
31 * This interface defines methods that allow proxy-authenticated service handlers
32 * to interact with phpCAS.
34 * Proxy service handlers must implement this interface as well as call
35 * phpCAS::initializeProxiedService($this) at some point in their implementation.
37 * While not required, proxy-authenticated service handlers are encouraged to
38 * implement the CAS_ProxiedService_Testable interface to facilitate unit testing.
40 * @class CAS_ProxiedService
41 * @category Authentication
43 * @author Adam Franco <afranco@middlebury.edu>
44 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
45 * @link https://wiki.jasig.org/display/CASC/phpCAS
47 interface CAS_ProxiedService
51 * Answer a service identifier (URL) for whom we should fetch a proxy ticket.
54 * @throws Exception If no service url is available.
56 public function getServiceUrl ();
59 * Register a proxy ticket with the ProxiedService that it can use when
62 * @param string $proxyTicket Proxy ticket string
65 * @throws InvalidArgumentException If the $proxyTicket is invalid.
66 * @throws CAS_OutOfSequenceException If called after a proxy ticket has
67 * already been initialized/set.
69 public function setProxyTicket ($proxyTicket);