Package org.keycloak.protocol.oidc.utils
Class AcrUtils
java.lang.Object
org.keycloak.protocol.oidc.utils.AcrUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenforceMinimumAcr(List<String> acrValues, ClientModel client) getAcrLoaMap(ClientModel client) getAcrLoaMap(RealmModel realm) getAcrUriMap(RealmModel realm) Return the acr to uri map in the realm.getAcrValues(String claimsParam, String acrValuesParam, ClientModel client) getDefaultAcrValues(ClientModel client) static StringgetMinimumAcrValue(ClientModel client) getRequiredAcrValues(String claimsParam) getUriLoaMap(ClientModel client) static StringmapLoaToAcr(int loa, Map<String, Integer> acrLoaMap, Collection<String> acrValues) parseAcrLoaMap(String map) parseAcrUriMap(String map)
-
Constructor Details
-
AcrUtils
public AcrUtils()
-
-
Method Details
-
getRequiredAcrValues
-
getAcrValues
public static List<String> getAcrValues(String claimsParam, String acrValuesParam, ClientModel client) -
enforceMinimumAcr
-
getAcrLoaMap
- 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
-
parseAcrLoaMap
- Throws:
IOException
-
parseAcrUriMap
- Throws:
IOException
-
getAcrLoaMap
- Parameters:
realm-- Returns:
- map corresponding to "acr-to-loa" realm attribute.
-
getAcrUriMap
Return the acr to uri map in the realm.- Parameters:
realm-- Returns:
- Map corresponding to acr to uri map
-
mapLoaToAcr
-
getDefaultAcrValues
-
getMinimumAcrValue
-