Class PolicyStoreMapperHelper


  • public class PolicyStoreMapperHelper
    extends Object
    • 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 array
        resourcesJson - JSON array from SQL with resource and scopes arrays
        Returns:
        Map of principal (sanitized lowercase) to set of scopes