← Back to plugin index

Exponential Temporary Locking Strategy

Description
A Temporary Locking strategy with a duration based on an exponential or linear formula. The lock duration after n failed attempts is calculated as follows:

Duration = (Base Duration) * (Exponential Factor) ^ (n - 1) + (Additional Duration) * (n - 1)

Note that the first addend is always greater than Base Duration
Type name
ExponentialTemporaryLockingStrategy
Class
com.airlock.iam.common.application.configuration.templock.ExponentialTemporaryLockingStrategyConfig
May be used by
Properties
Base Duration (in ms) (baseDurationMs)
Description
The duration (in milliseconds) a user is locked out after exactly one failed authentication attempt.
Attributes
Integer
Optional
Default value
3000
Exponential Factor (exponentialFactor)
Description
Factor that is multiplied to Base Duration with each failed attempt. If set to 1.0, the duration only grows linearly with the number of failed attempts.
After one failed attempt, Base Duration is used. After two failed attempts, Base Duration is multiplied with this factor. After three failed attempts, this factor is multiplied once more. For example, if the factor is 2.0, the duration is doubled with every failed attempt.
Note that this property can be combined with Additional Duration. See the plugin description for the overall formula.
Attributes
Double
Optional
Default value
2.0
Additional Duration (in ms) (additionalDurationMs)
Description
Duration (in milliseconds) that is added to Base Duration with each failed attempt. It has an effect if greater than 0 ms.
After one failed attempt, Base Duration is used. After two failed attempts, the additional duration is added to Base Duration. After three failed attempts, the additional duration is added once more.
Note that this property can be combined with Exponential Factor. See the plugin description for the overall formula.
Attributes
Integer
Optional
Default value
0
YAML Template (with default values)

type: ExponentialTemporaryLockingStrategy
id: ExponentialTemporaryLockingStrategy-xxxxxx
displayName: 
comment: 
properties:
  additionalDurationMs: 0
  baseDurationMs: 3000
  exponentialFactor: 2.0