BruteForceMiddleware

class OC\AppFramework\Middleware\Security\BruteForceMiddleware
Class BruteForceMiddleware performs the bruteforce protection for controllers
that are annotated with @BruteForceProtection(action=$action) whereas $action
is 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:
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:
Throws:

\Exception

Returns:

\OCP\AppFramework\Http\Response