String name = securityMap.getName(); String[] principal = securityMap.getPrincipal(); String[] userGroup = securityMap.getUserGroup(); EisBackendPrincipal backendPrincipal = transformBackendPrincipal(securityMap .getBackendPrincipal()); ConnectorSecurityMap convertedSecurityMap = new ConnectorSecurityMap( name, principal, userGroup, backendPrincipal); return convertedSecurityMap;
Creates the ResourcePrincipal object from the given securityMapparamsecurityMap SecurityMapreturncreated ResourcePrincipal object EisBackendPrincipal backendPrincipal = securityMap.getBackendPrincipal(); String userName = backendPrincipal.getUserName(); String password = backendPrincipal.getPassword(); ResourcePrincipal resPrincipal = new ResourcePrincipal(userName,password); return resPrincipal;
EisBackendPrincipal backendPrincipal = securityMap.getBackendPrincipal(); String userName = backendPrincipal.getUserName(); String password = backendPrincipal.getPassword(); ResourcePrincipal resPrincipal = new ResourcePrincipal(userName,password); return resPrincipal;
ConnectorSecurityMap[] maps = new ConnectorSecurityMap[securityMaps.length]; for (int i = 0; i < securityMaps.length; i++) { maps[i] = convertSecurityMapConfigBeanToSecurityMap(securityMaps[i]); } return maps;
Updates the registry with the security map. If a security map already exists it deletes that map completely before adding the mew security map.paramsecurityMaps Array of securityMaps to be updated.returnHash Map containing 1 - 1 mappings of principal and Resource Principal if (securityMaps == null || securityMaps.length == 0) { return new RuntimeSecurityMap(); } HashMap userMap = new HashMap(); HashMap groupMap = new HashMap(); // Add user-backendPrincipal mappings to Map1 for (int i = 0; i < securityMaps.length; i++) { ConnectorSecurityMap map = securityMaps[i]; ResourcePrincipal principal = generateResourcePrincipal(map); String[] principalNames = map.getPrincipals(); for (int j = 0; j < principalNames.length; j++) { userMap.put(principalNames[j], principal); } String[] groupNames = map.getUserGroups(); for (int j = 0; j < groupNames.length; j++) { groupMap.put(groupNames[j], principal); } } RuntimeSecurityMap runtimeSecurityMap = new RuntimeSecurityMap(userMap, groupMap); return runtimeSecurityMap;
if (securityMaps == null || securityMaps.length == 0) { return new RuntimeSecurityMap(); } HashMap userMap = new HashMap(); HashMap groupMap = new HashMap(); // Add user-backendPrincipal mappings to Map1 for (int i = 0; i < securityMaps.length; i++) { ConnectorSecurityMap map = securityMaps[i]; ResourcePrincipal principal = generateResourcePrincipal(map); String[] principalNames = map.getPrincipals(); for (int j = 0; j < principalNames.length; j++) { userMap.put(principalNames[j], principal); } String[] groupNames = map.getUserGroups(); for (int j = 0; j < groupNames.length; j++) { groupMap.put(groupNames[j], principal); } } RuntimeSecurityMap runtimeSecurityMap = new RuntimeSecurityMap(userMap, groupMap); return runtimeSecurityMap;
String userName = principal.getUserName(); String password = principal.getPassword(); EisBackendPrincipal backendPrincipal = new EisBackendPrincipal(userName, password); return backendPrincipal;