Class LoAUtil
- java.lang.Object
-
- org.keycloak.authentication.authenticators.util.LoAUtil
-
public class LoAUtil extends Object
- Author:
- Marek Posolda
-
-
Constructor Summary
Constructors Constructor Description LoAUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getCurrentLevelOfAuthentication(AuthenticatedClientSessionModel clientSession)
static Integer
getLevelFromLoaConditionConfiguration(AuthenticatorConfigModel loaConditionConfig)
static Stream<Integer>
getLoAConfiguredInRealmBrowserFlow(RealmModel realm)
static Map<Integer,Integer>
getLoaMaxAgesConfiguredInRealmBrowserFlow(RealmModel realm)
static int
getMaxAgeFromLoaConditionConfiguration(AuthenticatorConfigModel loaConditionConfig)
-
-
-
Method Detail
-
getCurrentLevelOfAuthentication
public static int getCurrentLevelOfAuthentication(AuthenticatedClientSessionModel clientSession)
- Parameters:
clientSession
-- Returns:
- current level from client session
-
getLoAConfiguredInRealmBrowserFlow
public static Stream<Integer> getLoAConfiguredInRealmBrowserFlow(RealmModel realm)
- Parameters:
realm
-- Returns:
- All LoA numbers configured in the conditions in the realm browser flow
-
getLoaMaxAgesConfiguredInRealmBrowserFlow
public static Map<Integer,Integer> getLoaMaxAgesConfiguredInRealmBrowserFlow(RealmModel realm)
- 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)
-
-