@Override
    public boolean isPathEncrypted(Path path) throws IOException {
      Path fullPath;
      if (path.isAbsolute()) {
        fullPath = path;
      } else {
        fullPath = path.getFileSystem(conf).makeQualified(path);
      }
      if (!isFileInHdfs(path.getFileSystem(conf), path)) {
        return false;
      }

      return (getEncryptionZoneForPath(fullPath) != null);
    }
Used to compare encryption key strengths.
shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java