public static User getCurrent() throws IOException {
    User user = new SecureHadoopUser();
    if (user.getUGI() == null) {
      return null;
    }
    return user;
  }
Returns the {@code User} instance within current execution context.
hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java