Skip to content

Instantly share code, notes, and snippets.

@tanopwan
Created December 2, 2020 12:26
Show Gist options
  • Save tanopwan/363f394c4f5f645fbedec6f8d41becc9 to your computer and use it in GitHub Desktop.
Save tanopwan/363f394c4f5f645fbedec6f8d41becc9 to your computer and use it in GitHub Desktop.
Interface class for org.apache.orc.impl
package org.apache.orc.impl;
import java.io.IOException;
import java.security.Key;
import java.util.List;
import java.util.Random;
import org.apache.hadoop.conf.Configuration;
import org.apache.orc.impl.HadoopShims.KeyMetadata;
import org.apache.orc.impl.HadoopShims.KeyProviderKind;
public interface KeyProvider {
List<String> getKeyNames() throws IOException;
KeyMetadata getCurrentKeyVersion(String var1) throws IOException;
LocalKey createLocalKey(KeyMetadata var1) throws IOException;
Key decryptLocalKey(KeyMetadata var1, byte[] var2) throws IOException;
KeyProviderKind getKind();
public interface Factory {
KeyProvider create(String var1, Configuration var2, Random var3) throws IOException;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment