HADOOP-15909. KeyProvider class should implement Closeable. Contributed
by Kuhu Shukla.
This commit is contained in:
parent
852701f793
commit
33c009a45d
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
|
import java.io.Closeable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.io.OutputStreamWriter;
|
import java.io.OutputStreamWriter;
|
||||||
@ -54,7 +55,7 @@
|
|||||||
*/
|
*/
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Public
|
||||||
@InterfaceStability.Unstable
|
@InterfaceStability.Unstable
|
||||||
public abstract class KeyProvider {
|
public abstract class KeyProvider implements Closeable {
|
||||||
public static final String DEFAULT_CIPHER_NAME =
|
public static final String DEFAULT_CIPHER_NAME =
|
||||||
CommonConfigurationKeysPublic.HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY;
|
CommonConfigurationKeysPublic.HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY;
|
||||||
public static final String DEFAULT_CIPHER =
|
public static final String DEFAULT_CIPHER =
|
||||||
|
Loading…
Reference in New Issue
Block a user