|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for sspmod_cdc_Server:Public Member Functions | |
| __construct ($domain) | |
| Initialize a CDC server. More... | |
| sendRequest (array $request) | |
| Send a request to this CDC server. More... | |
| getResponse () | |
| Parse and validate response received from a CDC server. More... | |
Static Public Member Functions | |
| static | processRequest () |
| Parse and process a CDC request. More... | |
Private Member Functions | |
| handleRequest (array $request) | |
| Handle a parsed CDC requst. More... | |
| handleAppend (array $request) | |
| Handle an append request. More... | |
| handleDelete (array $request) | |
| Handle a delete request. More... | |
| handleRead (array $request) | |
| Handle a read request. More... | |
| validate ($parameter) | |
| Helper function for validating the signature on a CDC message. More... | |
| send ($to, $parameter, array $message) | |
| Helper function for sending CDC messages. More... | |
| calcSignature ($rawMessage) | |
| Calculate the signature on the given message. More... | |
| getCDC () | |
| Get the IdP entities saved in the common domain cookie. More... | |
| setCDC (array $list) | |
| Build a CDC cookie string. More... | |
Static Private Member Functions | |
| static | get ($parameter) |
| Helper function for parsing and validating a CDC message. More... | |
Private Attributes | |
| $domain | |
| $server | |
| $key | |
| $cookieLifetime | |
| The lifetime of our cookie, in seconds. More... | |
Definition at line 8 of file Server.php.
| sspmod_cdc_Server::__construct | ( | $domain | ) |
Initialize a CDC server.
| string | $domain | The domain we are a server for. |
Definition at line 49 of file Server.php.
References $config, $domain, and SimpleSAML_Configuration\getConfig().
Here is the call graph for this function:
|
private |
Calculate the signature on the given message.
| string | $rawMessage | The base64-encoded message. |
Definition at line 348 of file Server.php.
Referenced by send(), and validate().
Here is the caller graph for this function:
|
staticprivate |
Helper function for parsing and validating a CDC message.
| string | $parameter | The name of the query parameter. |
Definition at line 245 of file Server.php.
References $message, and $timestamp.
Referenced by getResponse(), and processRequest().
Here is the caller graph for this function:
|
private |
Get the IdP entities saved in the common domain cookie.
Definition at line 361 of file Server.php.
References $_COOKIE, $idp, $ret, and SimpleSAML\Logger\warning().
Referenced by handleAppend(), and handleRead().
Here is the call graph for this function:
Here is the caller graph for this function:| sspmod_cdc_Server::getResponse | ( | ) |
Parse and validate response received from a CDC server.
Definition at line 91 of file Server.php.
References $response, get(), and validate().
Here is the call graph for this function:
|
private |
Handle an append request.
| array | $request | The request. |
Definition at line 181 of file Server.php.
References $list, $request, getCDC(), and setCDC().
Referenced by handleRequest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Handle a delete request.
| array | $request | The request. |
Definition at line 208 of file Server.php.
References PHPMailer\PHPMailer\$params, and SimpleSAML\Utils\HTTP\setCookie().
Referenced by handleRequest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Handle a read request.
| array | $request | The request. |
Definition at line 228 of file Server.php.
References $list, and getCDC().
Referenced by handleRequest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Handle a parsed CDC requst.
| array | $request |
Definition at line 131 of file Server.php.
References $domain, $request, $response, handleAppend(), handleDelete(), handleRead(), SimpleSAML\Logger\info(), and send().
Here is the call graph for this function:
|
static |
Parse and process a CDC request.
Definition at line 111 of file Server.php.
References $domain, $request, $server, and get().
Here is the call graph for this function:
|
private |
Helper function for sending CDC messages.
| string | $to | The URL the message should be delivered to. |
| string | $parameter | The query parameter the message should be sent in. |
| array | $message | The CDC message. |
Definition at line 317 of file Server.php.
References $message, PHPMailer\PHPMailer\$params, $url, calcSignature(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML\Utils\HTTP\submitPOSTData().
Referenced by handleRequest(), and sendRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| sspmod_cdc_Server::sendRequest | ( | array | $request | ) |
Send a request to this CDC server.
| array | $request | The CDC request. |
Definition at line 76 of file Server.php.
References $domain, $request, and send().
Here is the call graph for this function:
|
private |
Build a CDC cookie string.
| array | $list | The list of IdPs. |
Definition at line 388 of file Server.php.
References $list, PHPMailer\PHPMailer\$params, and SimpleSAML\Utils\HTTP\setCookie().
Referenced by handleAppend().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Helper function for validating the signature on a CDC message.
Will throw an exception if the message is invalid.
| string | $parameter | The name of the query parameter. |
Definition at line 291 of file Server.php.
References $message, and calcSignature().
Referenced by getResponse().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
The lifetime of our cookie, in seconds.
If this is 0, the cookie will expire when the browser is closed.
| int |
Definition at line 41 of file Server.php.
|
private |
Definition at line 15 of file Server.php.
Referenced by __construct(), handleRequest(), processRequest(), and sendRequest().
|
private |
Definition at line 31 of file Server.php.
|
private |
Definition at line 23 of file Server.php.
Referenced by processRequest().