public class MasterKeyServiceImpl extends Object implements MasterKeyService
Constructor and Description |
---|
MasterKeyServiceImpl()
default constructor
|
MasterKeyServiceImpl(Configuration configuration)
Constructs a new MasterKeyServiceImpl using prefered source according config.
|
MasterKeyServiceImpl(File masterKeyFile)
Constructs a new MasterKeyServiceImpl using a master key read from a file.
|
MasterKeyServiceImpl(String masterKey)
Constructs a new MasterKeyServiceImpl using the specified master key.
|
Modifier and Type | Method and Description |
---|---|
char[] |
getMasterSecret() |
boolean |
initializeMasterKeyFile(File masterKeyFile,
String masterKey)
Initializes the master key file.
|
boolean |
isMasterKeyInitialized() |
static void |
main(String[] args) |
public MasterKeyServiceImpl(File masterKeyFile)
masterKeyFile
- the location of the master key filepublic MasterKeyServiceImpl(String masterKey)
masterKey
- the master keypublic MasterKeyServiceImpl()
public MasterKeyServiceImpl(Configuration configuration)
public boolean isMasterKeyInitialized()
isMasterKeyInitialized
in interface MasterKeyService
public char[] getMasterSecret()
getMasterSecret
in interface MasterKeyService
public static void main(String[] args)
public boolean initializeMasterKeyFile(File masterKeyFile, String masterKey)
masterKeyFile
- the file to write the master key tomasterKey
- the master keyCopyright © 2022 Apache Software Foundation. All rights reserved.