Class LoAUtil
java.lang.Object
org.keycloak.authentication.authenticators.util.LoAUtil
- Author:
- Marek Posolda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getCurrentLevelOfAuthentication
(AuthenticatedClientSessionModel clientSession) static Integer
getLevelFromLoaConditionConfiguration
(AuthenticatorConfigModel loaConditionConfig) static int
getMaxAgeFromLoaConditionConfiguration
(AuthenticatorConfigModel loaConditionConfig)
-
Constructor Details
-
LoAUtil
public LoAUtil()
-
-
Method Details
-
getCurrentLevelOfAuthentication
- Parameters:
clientSession
-- Returns:
- current level from client session
-
getLoAConfiguredInRealmBrowserFlow
- Parameters:
realm
-- Returns:
- All LoA numbers configured in the conditions in the realm browser flow
-
getLoaMaxAgesConfiguredInRealmBrowserFlow
- Parameters:
realm
-- Returns:
- All LoA numbers configured in the conditions in the realm browser flow. Key is level, Vaue is maxAge for particular level
-
getLevelFromLoaConditionConfiguration
public static Integer getLevelFromLoaConditionConfiguration(AuthenticatorConfigModel loaConditionConfig) -
getMaxAgeFromLoaConditionConfiguration
public static int getMaxAgeFromLoaConditionConfiguration(AuthenticatorConfigModel loaConditionConfig)
-