Method |
Description |
|
__construct ( Database $db = null, array $config = [] ) |
AirBrake constructor. |
|
failFast ( string $username, string $ip, string $action = self::ACTION_LOGIN ) : boolean |
Returns true if we must fail fast and return an error message. |
|
getAccountRecoveryAttempts ( string $username, string $ip ) : integer |
Get the number of recent account recovery attempts |
|
getCutoff ( integer $expire ) : DateInterval |
Convert a number of seconds into the appropriate DateInterval |
|
getDelay ( string $username, string $ip, string $action = self::ACTION_LOGIN ) : integer |
Get the throttling delay (in milliseconds) |
|
getFailedLoginAttempts ( string $username, string $ip ) : integer |
Get the number of recent failed login attempts |
|
getFastExit ( ) : boolean |
|
|
getIPv4Subnet ( string $ip, integer $maskBits = 32 ) : string |
Return the given subnet for an IPv4 address and mask bits |
|
getIPv6Subnet ( string $ip, integer $maskBits = 48 ) : string |
Return the given subnet for an IPv6 address and mask bits |
|
getLogPublicKey ( string $publicKey = '' ) : EncryptionPublicKey |
Get the EncryptionPublicKey used for encrypting password guesses
to give admins insight into the type of attack being launched. |
|
getSubnet ( string $ip ) : string |
Return the given subnet for an IP and the configured mask bits |
|
registerAccountRecoveryAttempt ( string $username, string $ip ) : boolean |
Register account recovery attempt |
|
registerLoginFailure ( string $username, string $ip, integer $numFailures, HiddenString $password = null ) : boolean |
Register a failed login attempt |
|