Class PolicyStoreMapperHelper
- java.lang.Object
-
- io.jans.ca.plugin.adminui.utils.security.PolicyStoreMapperHelper
-
public class PolicyStoreMapperHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Set<String>>mapPrincipalsToScopes(com.fasterxml.jackson.databind.JsonNode policyStoreJson, com.fasterxml.jackson.databind.JsonNode resourcesJson)Main entry point for mapping principals to scopes.
-
-
-
Method Detail
-
mapPrincipalsToScopes
public static Map<String,Set<String>> mapPrincipalsToScopes(com.fasterxml.jackson.databind.JsonNode policyStoreJson, com.fasterxml.jackson.databind.JsonNode resourcesJson)
Main entry point for mapping principals to scopes.- Parameters:
policyStoreJson- Root JSON containing policy_stores arrayresourcesJson- JSON array from SQL with resource and scopes arrays- Returns:
- Map of principal (sanitized lowercase) to set of scopes
-
-