ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
hasConsent ($userId, $destinationId, $attributeSet) | |
Check for consent. More... | |
saveConsent ($userId, $destinationId, $attributeSet) | |
Save consent. More... | |
deleteConsent ($userId, $destinationId) | |
Delete consent. More... | |
deleteAllConsents ($userId) | |
Delete consent. More... | |
getConsents ($userId) | |
Retrieve consents. More... | |
![]() | |
hasConsent ($userId, $destinationId, $attributeSet) | |
Check for consent. More... | |
saveConsent ($userId, $destinationId, $attributeSet) | |
Save consent. More... | |
deleteConsent ($userId, $destinationId) | |
Delete consent. More... | |
deleteAllConsents ($userId) | |
Delete all consents. More... | |
getStatistics () | |
Get statistics for all consent given in the consent store. More... | |
getConsents ($userId) | |
Retrieve consents. More... | |
Private Member Functions | |
_setConsentCookie ($name, $value) | |
Helper function for setting a cookie. More... | |
Static Private Member Functions | |
static | _sign ($data) |
Calculate a signature of some data. More... | |
static | _verify ($signedData) |
Verify signed data. More... | |
static | _getCookieName ($userId, $destinationId) |
Get cookie name. More... | |
Additional Inherited Members | |
![]() | |
static | parseStoreConfig ($config) |
Parse consent storage configuration. More... | |
![]() | |
__construct (&$config) | |
Constructor for the base class. More... | |
Definition at line 21 of file Cookie.php.
|
staticprivate |
Get cookie name.
This function gets the cookie name for the given user & destination.
string | $userId | The hash identifying the user at an IdP. |
string | $destinationId | A string which identifies the destination. |
Definition at line 254 of file Cookie.php.
|
private |
Helper function for setting a cookie.
string | $name | Name of the cookie. |
string | null | $value | Value of the cookie. Set this to null to delete the cookie. |
Definition at line 271 of file Cookie.php.
References $globalConfig, $name, $params, array, SimpleSAML_Configuration\getInstance(), and SimpleSAML\Utils\HTTP\setCookie().
Referenced by deleteConsent(), and saveConsent().
|
staticprivate |
Calculate a signature of some data.
This function calculates a signature of the data.
string | $data | The data which should be signed. |
Definition at line 204 of file Cookie.php.
References $data, and SimpleSAML\Utils\Config\getSecretSalt().
|
staticprivate |
Verify signed data.
This function verifies signed data.
string | $signedData | The data which is signed. |
Definition at line 223 of file Cookie.php.
References $data, and SimpleSAML\Logger\warning().
sspmod_consent_Consent_Store_Cookie::deleteAllConsents | ( | $userId | ) |
Delete consent.
string | $userId | The hash identifying the user at an IdP. |
Exception | This method always throws an exception indicating that it is not possible to delete all given consents with this handler. |
Definition at line 137 of file Cookie.php.
sspmod_consent_Consent_Store_Cookie::deleteConsent | ( | $userId, | |
$destinationId | |||
) |
Delete consent.
Called when a user revokes consent for a given destination.
string | $userId | The hash identifying the user at an IdP. |
string | $destinationId | A string which identifies the destination. |
Definition at line 117 of file Cookie.php.
References $name, and _setConsentCookie().
sspmod_consent_Consent_Store_Cookie::getConsents | ( | $userId | ) |
Retrieve consents.
This function should return a list of consents the user has saved.
string | $userId | The hash identifying the user at an IdP. |
Definition at line 156 of file Cookie.php.
References $_COOKIE, $destination, $name, $ret, array, and SimpleSAML\Logger\warning().
sspmod_consent_Consent_Store_Cookie::hasConsent | ( | $userId, | |
$destinationId, | |||
$attributeSet | |||
) |
Check for consent.
This function checks whether a given user has authorized the release of the attributes identified by $attributeSet from $source to $destination.
string | $userId | The hash identifying the user at an IdP. |
string | $destinationId | A string which identifies the destination. |
string | $attributeSet | A hash which identifies the attributes. |
Definition at line 35 of file Cookie.php.
References $_COOKIE, $cookieName, $data, SimpleSAML\Logger\debug(), and SimpleSAML\Logger\info().
sspmod_consent_Consent_Store_Cookie::saveConsent | ( | $userId, | |
$destinationId, | |||
$attributeSet | |||
) |
Save consent.
Called when the user asks for the consent to be saved. If consent information for the given user and destination already exists, it should be overwritten.
string | $userId | The hash identifying the user at an IdP. |
string | $destinationId | A string which identifies the destination. |
string | $attributeSet | A hash which identifies the attributes. |
Definition at line 91 of file Cookie.php.
References $name, _setConsentCookie(), and SimpleSAML\Logger\debug().