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 intgetCurrentLevelOfAuthentication(org.keycloak.models.AuthenticatedClientSessionModel clientSession)static IntegergetLevelFromLoaConditionConfiguration(org.keycloak.models.AuthenticatorConfigModel loaConditionConfig)static Stream<Integer>getLoAConfiguredInRealmBrowserFlow(org.keycloak.models.RealmModel realm)static Map<Integer,Integer>getLoaMaxAgesConfiguredInRealmBrowserFlow(org.keycloak.models.RealmModel realm)static intgetMaxAgeFromLoaConditionConfiguration(org.keycloak.models.AuthenticatorConfigModel loaConditionConfig)
-
-
-
Method Detail
-
getCurrentLevelOfAuthentication
public static int getCurrentLevelOfAuthentication(org.keycloak.models.AuthenticatedClientSessionModel clientSession)
- Parameters:
clientSession-- Returns:
- current level from client session
-
getLoAConfiguredInRealmBrowserFlow
public static Stream<Integer> getLoAConfiguredInRealmBrowserFlow(org.keycloak.models.RealmModel realm)
- Parameters:
realm-- Returns:
- All LoA numbers configured in the conditions in the realm browser flow
-
getLoaMaxAgesConfiguredInRealmBrowserFlow
public static Map<Integer,Integer> getLoaMaxAgesConfiguredInRealmBrowserFlow(org.keycloak.models.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(org.keycloak.models.AuthenticatorConfigModel loaConditionConfig)
-
getMaxAgeFromLoaConditionConfiguration
public static int getMaxAgeFromLoaConditionConfiguration(org.keycloak.models.AuthenticatorConfigModel loaConditionConfig)
-
-