java.lang.Object
org.keycloak.authentication.authenticators.util.LoAUtil

public class LoAUtil extends Object
Author:
Marek Posolda
  • Constructor Details

    • LoAUtil

      public LoAUtil()
  • Method Details

    • 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)