org.apache.hadoop.hbase.io.crypto
Interface KeyProvider

All Known Implementing Classes:
KeyStoreKeyProvider

@InterfaceAudience.Public
@InterfaceStability.Unstable
public interface KeyProvider

KeyProvider is a interface to abstract the different methods of retrieving key material from key storage such as Java key store.


Field Summary
static String PASSWORD
           
static String PASSWORDFILE
           
 
Method Summary
 Key getKey(String alias)
          Retrieve the key for a given key aliase
 Key[] getKeys(String[] aliases)
          Retrieve keys for a given set of key aliases
 void init(String params)
          Initialize the key provider
 

Field Detail

PASSWORD

static final String PASSWORD
See Also:
Constant Field Values

PASSWORDFILE

static final String PASSWORDFILE
See Also:
Constant Field Values
Method Detail

init

void init(String params)
Initialize the key provider

Parameters:
params -

getKey

Key getKey(String alias)
Retrieve the key for a given key aliase

Parameters:
alias -
Returns:
the keys corresponding to the supplied alias, or null if a key is not found

getKeys

Key[] getKeys(String[] aliases)
Retrieve keys for a given set of key aliases

Parameters:
aliases - an array of aliases
Returns:
an array of keys corresponding to the supplied aliases, an entry will be null if a key is not found


Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.