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