|
Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
|
The LoginTracker class is an optional security enhancement that can be installed in an instance of one of the authenticator classes.
The tracker caches failed attempts by peer IP address and delegates the decision to allow another attempt to application callbacks. It does not provide a built-in retry policy. A full cache reuses its oldest inserted active node. Serialize access with the server mutex and keep callbacks/dependencies alive.
#include <AuthenticatedUser.h>
Public Member Functions | |
| LoginTracker (U32 noOfLoginTrackerNodes, LoginTrackerIntf *intf, AllocatorIntf *allocator=AllocatorIntf::getDefault()) | |
| Allocate a fixed cache of address records. More... | |
| void | clearCache () |
| Remove all active cached addresses. More... | |
| LoginTrackerNode * | getFirstNode () |
| Start iteration over active cached addresses in insertion order. More... | |
| LoginTrackerNode * | getNextNode (LoginTrackerNode *n) |
| Advance through active cached addresses. More... | |
| LoginTrackerNode * | find (HttpRequest *request) |
| Find a cached address using the current connection's peer IP. More... | |