63 if (empty($proxyTicket)) {
65 'Trying to initialize with an empty proxy ticket.'
68 if (!empty($this->_proxyTicket)) {
70 'Already initialized, cannot change the proxy ticket.'
73 $this->_proxyTicket = $proxyTicket;
85 if (empty($this->_proxyTicket)) {
87 'No proxy ticket yet. Call $this->initializeProxyTicket() to aquire the proxy ticket.'
114 if (!empty($this->_proxyTicket)) {
116 'Already initialized, cannot change the CAS_Client.'
120 $this->_casClient = $casClient;
135 if (!empty($this->_proxyTicket)) {
137 'Already initialized, cannot initialize again.'
141 if (empty($this->_casClient)) {
144 $this->_casClient->initializeProxiedService($this);
The CAS_Client class is a client interface that provides CAS authentication to PHP applications.
An exception for terminatinating execution or to throw for unit testing.
Exception that denotes invalid arguments were passed.
This class defines Exceptions that should be thrown when the sequence of operations is invalid.
This class implements common methods for ProxiedService implementations included with phpCAS.
setCasClient(CAS_Client $casClient)
Use a particular CAS_Client->initializeProxiedService() rather than the static phpCAS::initializeProx...
initializeProxyTicket()
Fetch our proxy ticket.
setProxyTicket($proxyTicket)
Register a proxy ticket with the Proxy that it can use when making requests.
$_proxyTicket
The proxy ticket that can be used when making service requests.
getProxyTicket()
Answer the proxy ticket to be used when making requests.
static initializeProxiedService(CAS_ProxiedService $proxiedService)
Initialize a proxied-service handler with the proxy-ticket it should use.
This interface defines methods that allow proxy-authenticated service handlers to interact with phpCA...