public interface KeyProvider
| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | KeyProvider.FactoryA service loader factory interface. | 
| Modifier and Type | Method and Description | 
|---|---|
| LocalKey | createLocalKey(HadoopShims.KeyMetadata key)Create a local key for the given key version. | 
| Key | decryptLocalKey(HadoopShims.KeyMetadata key,
               byte[] encryptedKey)Decrypt a local key for reading a file. | 
| HadoopShims.KeyMetadata | getCurrentKeyVersion(String keyName)Get the current metadata for a given key. | 
| List<String> | getKeyNames()Get the list of key names from the key provider. | 
| HadoopShims.KeyProviderKind | getKind()Get the kind of this provider. | 
List<String> getKeyNames() throws IOException
IOExceptionHadoopShims.KeyMetadata getCurrentKeyVersion(String keyName) throws IOException
keyName - the name of a keyIllegalArgumentException - if the key is unknownIOExceptionLocalKey createLocalKey(HadoopShims.KeyMetadata key) throws IOException
key - the master key versionIOExceptionKey decryptLocalKey(HadoopShims.KeyMetadata key, byte[] encryptedKey) throws IOException
key - the master key versionencryptedKey - the encrypted keyIOExceptionHadoopShims.KeyProviderKind getKind()
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.