Class AcrUtils

java.lang.Object
org.keycloak.protocol.oidc.utils.AcrUtils

public class AcrUtils extends Object
  • Constructor Details

    • AcrUtils

      public AcrUtils()
  • Method Details

    • getRequiredAcrValues

      public static List<String> getRequiredAcrValues(String claimsParam)
    • getAcrValues

      public static List<String> getAcrValues(String claimsParam, String acrValuesParam, org.keycloak.models.ClientModel client)
    • enforceMinimumAcr

      public static List<String> enforceMinimumAcr(List<String> acrValues, org.keycloak.models.ClientModel client)
    • getAcrLoaMap

      public static Map<String,Integer> getAcrLoaMap(org.keycloak.models.ClientModel client)
      Parameters:
      client -
      Returns:
      map corresponding to "acr-to-loa" client attribute. It will fallback to realm in case "acr-to-loa" mapping not configured on client
    • getUriLoaMap

      public static Map<String,Integer> getUriLoaMap(org.keycloak.models.ClientModel client)
    • parseAcrLoaMap

      public static Map<String,Integer> parseAcrLoaMap(String map) throws IOException
      Throws:
      IOException
    • parseAcrUriMap

      public static Map<String,String> parseAcrUriMap(String map) throws IOException
      Throws:
      IOException
    • getAcrLoaMap

      public static Map<String,Integer> getAcrLoaMap(org.keycloak.models.RealmModel realm)
      Parameters:
      realm -
      Returns:
      map corresponding to "acr-to-loa" realm attribute.
    • getAcrUriMap

      public static Map<String,String> getAcrUriMap(org.keycloak.models.RealmModel realm)
      Return the acr to uri map in the realm.
      Parameters:
      realm -
      Returns:
      Map corresponding to acr to uri map
    • mapLoaToAcr

      public static String mapLoaToAcr(int loa, Map<String,Integer> acrLoaMap, Collection<String> acrValues)
    • getDefaultAcrValues

      public static List<String> getDefaultAcrValues(org.keycloak.models.ClientModel client)
    • getMinimumAcrValue

      public static String getMinimumAcrValue(org.keycloak.models.ClientModel client)