Class PolicyToScopeMapper
- java.lang.Object
-
- io.jans.ca.plugin.adminui.utils.security.PolicyToScopeMapper
-
@Singleton public class PolicyToScopeMapper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringGLUU_FLEX_ADMINUI_RESOURCES_FEATURES
-
Constructor Summary
Constructors Constructor Description PolicyToScopeMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Set<String>>processZipFile(ZipFile zipFile, com.fasterxml.jackson.databind.JsonNode resourcesJson)Generate a mapping from role names to their aggregated scopes by processing a policy-store ZIP and a resources JSON.
-
-
-
Field Detail
-
GLUU_FLEX_ADMINUI_RESOURCES_FEATURES
public static final String GLUU_FLEX_ADMINUI_RESOURCES_FEATURES
- See Also:
- Constant Field Values
-
-
Method Detail
-
processZipFile
public Map<String,Set<String>> processZipFile(ZipFile zipFile, com.fasterxml.jackson.databind.JsonNode resourcesJson)
Generate a mapping from role names to their aggregated scopes by processing a policy-store ZIP and a resources JSON.- Parameters:
zipFile- the ZIP file containing policies (policies/*.cedar|*.cedarpl) and entity definitions (entities/*.json)resourcesJson- JSON structure that maps resources and access types to scope lists (used to build the scope mapping cache)- Returns:
- a map where each key is a role name and the value is the set of resolved scope strings for that role
-
-