Package org.keycloak.models.utils
Class LoginFailureUtils
java.lang.Object
org.keycloak.models.utils.LoginFailureUtils
Shared methods to calculate login failure idle times.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcomputeExpirationCutOffTimestampMillis(RealmModel realm, long currentTimeMillis) Compute the expiration time cut-off in milliseconds for expiring login failure entries.
-
Constructor Details
-
LoginFailureUtils
public LoginFailureUtils()
-
-
Method Details
-
computeExpirationCutOffTimestampMillis
Compute the expiration time cut-off in milliseconds for expiring login failure entries.- Parameters:
realm- current realmcurrentTimeMillis- current timestamp in milliseconds since last epoch- Returns:
- Timestamp in milliseconds, or -1L if the realm will never expire.
-