code: public static void setPolicy(Policy policy) {
      if (LOG.isDebugEnabled()) {
        LOG.debug("Setting Hadoop security policy");
      }
      Policy.setPolicy(policy);
    }
docs: Set the global security policy for Hadoop.
  
  @param policy {@link Policy} used for authorization.