public interface CredentialStore
Modifier and Type | Method and Description |
---|---|
void |
addCredential(String alias,
Credential credential)
Adds a new credential to this CredentialStore
The supplied key will be converted into UTF-8 bytes before being stored.
|
boolean |
containsCredential(String alias)
Tests this CredentialStore for the existence of a credential with the specified alias
|
Credential |
getCredential(String alias)
Retrieves the specified credential from this CredentialStore
|
Set<String> |
listCredentials()
Returns a list of the alias names for the credentials stored in the CredentialStore
|
void |
removeCredential(String alias)
Removes the specified credential from this CredentialStore
|
void |
setMasterKeyService(MasterKeyService masterKeyService)
Sets the MasterKeyService for this CredentialStore
|
void addCredential(String alias, Credential credential) throws org.apache.ambari.server.AmbariException
alias
- a string declaring the alias (or name) of the credentialcredential
- the credential to storeorg.apache.ambari.server.AmbariException
- if an error occurs while storing the new credentialCredential getCredential(String alias) throws org.apache.ambari.server.AmbariException
alias
- a string declaring the alias (or name) of the credentialorg.apache.ambari.server.AmbariException
- if an error occurs while retrieving the new credentialvoid removeCredential(String alias) throws org.apache.ambari.server.AmbariException
alias
- a string declaring the alias (or name) of the credentialorg.apache.ambari.server.AmbariException
- if an error occurs while removing the new credentialSet<String> listCredentials() throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
- if an error occurs while searching forthe credentialboolean containsCredential(String alias) throws org.apache.ambari.server.AmbariException
alias
- a string declaring the alias (or name) of the credentialorg.apache.ambari.server.AmbariException
- if an error occurs while searching forthe credentialvoid setMasterKeyService(MasterKeyService masterKeyService)
masterKeyService
- the MasterKeyServiceCopyright © 2022 Apache Software Foundation. All rights reserved.