Package org.keycloak.protocol.oidc.utils
Class AcrUtils
- java.lang.Object
-
- org.keycloak.protocol.oidc.utils.AcrUtils
-
public class AcrUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description AcrUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Integer>
getAcrLoaMap(ClientModel client)
static Map<String,Integer>
getAcrLoaMap(RealmModel realm)
static List<String>
getAcrValues(String claimsParam, String acrValuesParam, ClientModel client)
static List<String>
getDefaultAcrValues(ClientModel client)
static List<String>
getRequiredAcrValues(String claimsParam)
static String
mapLoaToAcr(int loa, Map<String,Integer> acrLoaMap, Collection<String> acrValues)
-
-
-
Method Detail
-
getAcrValues
public static List<String> getAcrValues(String claimsParam, String acrValuesParam, ClientModel client)
-
getAcrLoaMap
public static Map<String,Integer> getAcrLoaMap(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
-
getAcrLoaMap
public static Map<String,Integer> getAcrLoaMap(RealmModel realm)
- Parameters:
realm
-- Returns:
- map corresponding to "acr-to-loa" realm attribute.
-
mapLoaToAcr
public static String mapLoaToAcr(int loa, Map<String,Integer> acrLoaMap, Collection<String> acrValues)
-
getDefaultAcrValues
public static List<String> getDefaultAcrValues(ClientModel client)
-
-