public static HdfsEncryptionShim createInstance(URI uri, Configuration conf) throws IOException {
      HdfsAdmin hadmin = new HdfsAdmin(uri, conf);
      KeyProvider keyP = hadmin.getKeyProvider();
      HdfsEncryptionShim hdfsEncryptionShim = new HdfsEncryptionShim(conf);
      hdfsEncryptionShim.hdfsAdmin = hadmin;
      hdfsEncryptionShim.keyProvider = keyP;
      return hdfsEncryptionShim;
    }
Used to compare encryption key strengths.
shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java