SecurityComponent Class Reference

Public Member Functions | |
| blackHole (&$controller) | |
| requireAuth () | |
| requirePost () | |
| startup (&$controller) | |
Public Attributes | |
| $allowedActions = array() | |
| $allowedControllers = array() | |
| $blackHoleCallback = null | |
| $components = array('RequestHandler', 'Session') | |
| $requireAuth = array() | |
| $requirePost = array() | |
| $Security = null | |
Detailed Description
Definition at line 37 of file security.php.
Member Function Documentation
| SecurityComponent::blackHole | ( | &$ | controller | ) |
Black-hole an invalid request with a 404 error or custom callback
- Parameters:
-
object $controller
- Returns:
- callback in controller public
Definition at line 175 of file security.php.
Referenced by startup().
| SecurityComponent::requireAuth | ( | ) |
Sets the actions that require an authenticated request, or empty for all actions
public
- Returns:
- void
Definition at line 198 of file security.php.
Referenced by startup().
| SecurityComponent::requirePost | ( | ) |
Sets the actions that require a POST request, or empty for all actions
public
- Returns:
- void
Definition at line 189 of file security.php.
Referenced by startup().
| SecurityComponent::startup | ( | &$ | controller | ) |
Component startup. All security checking happens here.
- Parameters:
-
object $controller
- Returns:
- unknown public
Definition at line 104 of file security.php.
References blackHole(), Security::generateAuthKey(), Security::inactiveMins(), requireAuth(), and requirePost().
Member Data Documentation
| SecurityComponent::$allowedActions = array() |
Definition at line 83 of file security.php.
| SecurityComponent::$allowedControllers = array() |
Definition at line 75 of file security.php.
| SecurityComponent::$blackHoleCallback = null |
Definition at line 51 of file security.php.
| SecurityComponent::$components = array('RequestHandler', 'Session') |
Definition at line 90 of file security.php.
| SecurityComponent::$requireAuth = array() |
Definition at line 67 of file security.php.
| SecurityComponent::$requirePost = array() |
Definition at line 59 of file security.php.
| SecurityComponent::$Security = null |
Definition at line 44 of file security.php.
The documentation for this class was generated from the following file:
- 1.1.x.x/cake/libs/controller/components/security.php