public class FileBasedCredentialStore extends AbstractCredentialStore
MasterKeyService.
Most of the work for this implementation is handled by the AbstractCredentialStore.
This class handles the details of the storage location and associated input and output streams.DEFAULT_STORE_TYPE| Constructor and Description |
|---|
FileBasedCredentialStore(File keyStoreLocation)
Constructs a new FileBasedCredentialStore using the specified key store directory
|
| Modifier and Type | Method and Description |
|---|---|
File |
getKeyStorePath()
Gets the path to this FileBasedCredentialStore's KeyStore file
|
protected KeyStore |
loadCredentialStore()
Calls the implementation-specific facility to load the KeyStore
|
protected void |
persistCredentialStore(KeyStore keyStore)
Calls the implementation-specific facility to persist the KeyStore
|
addCredential, addCredential, containsCredential, getCredential, getCredential, getLock, listCredentials, loadKeyStore, removeCredential, setMasterKeyService, toBytes, toChars, writeKeyStorepublic FileBasedCredentialStore(File keyStoreLocation)
keyStoreLocation - a File pointing to the directory in which to store the key store file; or the file itselfpublic File getKeyStorePath()
protected void persistCredentialStore(KeyStore keyStore) throws org.apache.ambari.server.AmbariException
AbstractCredentialStorepersistCredentialStore in class AbstractCredentialStorekeyStore - the KeyStore to persistorg.apache.ambari.server.AmbariException - if an error occurs while persisting the key store dataprotected KeyStore loadCredentialStore() throws org.apache.ambari.server.AmbariException
AbstractCredentialStoreloadCredentialStore in class AbstractCredentialStoreorg.apache.ambari.server.AmbariException - if an error occurs while loading the key store dataCopyright © 2022 Apache Software Foundation. All rights reserved.