Security Class Reference

Public Member Functions | |
| cipher ($text, $key) | |
| generateAuthKey () | |
| & | getInstance () |
| hash ($string, $type= 'sha1') | |
| inactiveMins () | |
| validateAuthKey ($authKey) | |
Detailed Description
Definition at line 38 of file security.php.
Member Function Documentation
| Security::cipher | ( | $ | text, | |
| $ | key | |||
| ) |
Function that ciphers a text using a key
- Parameters:
-
string $text string $key
- Returns:
- string public
Definition at line 133 of file security.php.
| Security::generateAuthKey | ( | ) |
Generates a unique authkey
- Returns:
- mixed public
Definition at line 78 of file security.php.
References getInstance().
Referenced by SecurityComponent::startup().
| & Security::getInstance | ( | ) |
Singleton method to retrieve the instance of the Security class
- Returns:
- object Security public
Definition at line 45 of file security.php.
Referenced by generateAuthKey().
| Security::hash | ( | $ | string, | |
| $ | type = 'sha1' | |||
| ) |
Generates a hash of a string using a php built in hashing function
- Parameters:
-
string $string The string to be hashed string $type The hashing algorithm
- Returns:
- string public
Definition at line 100 of file security.php.
| Security::inactiveMins | ( | ) |
Returns inactive minutes constant based on cake the security level
- Returns:
- integer public
Definition at line 58 of file security.php.
Referenced by CakeSession::_checkValid(), and SecurityComponent::startup().
| Security::validateAuthKey | ( | $ | authKey | ) |
Validates the authkey
- Parameters:
-
mixed $authKey
- Returns:
- boolean public
Definition at line 89 of file security.php.
The documentation for this class was generated from the following file:
- 1.1.x.x/cake/libs/security.php