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...
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... | |
Public Member Functions inherited from CAS_ProxyChain_Interface | |
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.
|
protected |
Validate the size of the the list as compared to our chain.
array | $list | List of proxies |
Definition at line 121 of file ProxyChain.php.
Referenced by matches().
CAS_ProxyChain::matches | ( | array | $list | ) |
Match a list of proxies.
array | $list | The list of proxies in front of this service. |
Definition at line 71 of file ProxyChain.php.
References $i, isSizeValid(), and phpCAS\trace().
|
protected |
Definition at line 44 of file ProxyChain.php.