|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
A normal proxy-chain definition that lists each level of the chain as either a string or regular expression. More...
Inheritance diagram for CAS_ProxyChain:
Collaboration diagram for CAS_ProxyChain:Public Member Functions | |
| __construct (array $chain) | |
| A chain is an array of strings or regexp strings that will be matched against. More... | |
| matches (array $list) | |
| Match a list of proxies. More... | |
| matches (array $list) | |
| Match a list of proxies. More... | |
Protected Member Functions | |
| isSizeValid (array $list) | |
| Validate the size of the the list as compared to our chain. More... | |
Protected Attributes | |
| $chain = array() | |
A normal proxy-chain definition that lists each level of the chain as either a string or regular expression.
Definition at line 42 of file ProxyChain.php.
| CAS_ProxyChain::__construct | ( | array | $chain | ) |
A chain is an array of strings or regexp strings that will be matched against.
Regexp will be matched with preg_match and strings will be matched from the beginning. A string must fully match the beginning of an proxy url. So you can define a full domain as acceptable or go further down. Proxies have to be defined in reverse from the service to the user. If a user hits service A get proxied via B to service C the list of acceptable proxies on C would be array(B,A);
| array | $chain | A chain of proxies |
Definition at line 58 of file ProxyChain.php.
References $chain.
|
protected |
Validate the size of the the list as compared to our chain.
| array | $list | List of proxies |
Reimplemented in CAS_ProxyChain_Trusted.
Definition at line 121 of file ProxyChain.php.
References $list.
Referenced by matches().
Here is the caller graph for this function:| CAS_ProxyChain::matches | ( | array | $list | ) |
Match a list of proxies.
| array | $list | The list of proxies in front of this service. |
Reimplemented from CAS_ProxyChain_Interface.
Definition at line 71 of file ProxyChain.php.
References $i, $list, isSizeValid(), and phpCAS\trace().
Here is the call graph for this function:
|
protected |
Definition at line 44 of file ProxyChain.php.
Referenced by __construct().