use of org.apache.druid.security.basic.authorization.entity.GroupMappingAndRoleMap in project druid by druid-io.
the class CoordinatorBasicAuthorizerResourceHandler method getCachedGroupMappingMaps.
@Override
public Response getCachedGroupMappingMaps(String authorizerName) {
final BasicRoleBasedAuthorizer authorizer = authorizerMap.get(authorizerName);
if (authorizer == null) {
return makeResponseForAuthorizerNotFound(authorizerName);
}
GroupMappingAndRoleMap groupMappingAndRoleMap = new GroupMappingAndRoleMap(storageUpdater.getCachedGroupMappingMap(authorizerName), storageUpdater.getCachedRoleMap(authorizerName));
return Response.ok(groupMappingAndRoleMap).build();
}
Aggregations