BruteForceMiddleware¶
-
class
OC\AppFramework\Middleware\Security\
BruteForceMiddleware
¶ - Class BruteForceMiddleware performs the bruteforce protection for controllersthat are annotated with @BruteForceProtection(action=$action) whereas $actionis the action that should be logged within the database.
Source: lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php#50 Parent: OCP\AppFramework\Middleware
Properties¶
Methods¶
-
public
OC\AppFramework\Middleware\Security\BruteForceMiddleware::
__construct
($controllerMethodReflector, $throttler, $request)¶ Source: lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php#63
Parameters: - $controllerMethodReflector (
OC\AppFramework\Utility\ControllerMethodReflector
) - $throttler (
OC\Security\Bruteforce\Throttler
) - $request (
OCP\IRequest
)
- $controllerMethodReflector (
-
public
OC\AppFramework\Middleware\Security\BruteForceMiddleware::
beforeController
($controller, $methodName)¶ -
Source: lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php#74
-
public
OC\AppFramework\Middleware\Security\BruteForceMiddleware::
afterController
($controller, $methodName, $response)¶ -
Source: lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php#86
-
public
OC\AppFramework\Middleware\Security\BruteForceMiddleware::
afterException
($controller, $methodName, $exception)¶ Source: lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php#104
Parameters: - $controller (
OCP\AppFramework\Controller
) - $methodName (string)
- $exception (
Exception
)
Throws: \Exception
Returns: - $controller (