Package es.caib.seycon.ng.sync.servei
Interface SecretStoreService
-
public interface SecretStoreServiceService SecretStoreService
-
-
Field Summary
Fields Modifier and Type Field Description static StringREMOTE_PATHstatic StringSERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Account>getAccountsWithPassword()Operation getAccountsWithPasswordList<Secret>getAllSecrets(Usuari user)Operation getAllSecretsPasswordgetPassword(long accountId)Operation getPasswordPasswordgetSecret(Usuari user, String secret)Operation getSecretList<Secret>getSecrets(Usuari user)Operation getSecretsPasswordgetSshPrivateKey(long accountId)Operation getSshPrivateKeyCollection<Usuari>getUsersWithSecrets()Operation getUsersWithSecretsvoidputSecret(Usuari user, String secret, Password value)Operation putSecretvoidreencode(Usuari user)Operation reencodevoidremoveSecret(Usuari user, String secret)Operation removeSecretvoidsetPassword(long accountId, Password value)Operation setPasswordvoidsetPassword(Usuari user, String passwordDomain, Password password)Operation setPasswordvoidsetPasswordAndUpdateAccount(long accountId, Password value, boolean mustChange, Date expirationDate)Operation setPasswordAndUpdateAccountvoidsetSshPrivateKey(long accountId, Password privateKey)Operation setSshPrivateKey
-
-
-
Field Detail
-
REMOTE_PATH
static final String REMOTE_PATH
- See Also:
- Constant Field Values
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPassword
Password getPassword(long accountId) throws InternalErrorException, InternalErrorException
Operation getPassword- Parameters:
accountId-- Returns:
- Throws:
InternalErrorException
-
getSecret
Password getSecret(Usuari user, String secret) throws InternalErrorException, InternalErrorException
Operation getSecret- Parameters:
user-secret-- Returns:
- Throws:
InternalErrorException
-
getSshPrivateKey
Password getSshPrivateKey(long accountId) throws InternalErrorException, InternalErrorException
Operation getSshPrivateKey- Parameters:
accountId-- Returns:
- Throws:
InternalErrorException
-
getAccountsWithPassword
Collection<Account> getAccountsWithPassword() throws InternalErrorException, InternalErrorException
Operation getAccountsWithPassword- Returns:
- Throws:
InternalErrorException
-
getUsersWithSecrets
Collection<Usuari> getUsersWithSecrets() throws InternalErrorException, InternalErrorException
Operation getUsersWithSecrets- Returns:
- Throws:
InternalErrorException
-
getAllSecrets
List<Secret> getAllSecrets(Usuari user) throws InternalErrorException, InternalErrorException
Operation getAllSecrets- Parameters:
user-- Returns:
- Throws:
InternalErrorException
-
getSecrets
List<Secret> getSecrets(Usuari user) throws InternalErrorException, InternalErrorException
Operation getSecrets- Parameters:
user-- Returns:
- Throws:
InternalErrorException
-
putSecret
void putSecret(Usuari user, String secret, Password value) throws InternalErrorException, InternalErrorException
Operation putSecret- Parameters:
user-secret-value-- Throws:
InternalErrorException
-
reencode
void reencode(Usuari user) throws InternalErrorException, InternalErrorException
Operation reencode- Parameters:
user-- Throws:
InternalErrorException
-
removeSecret
void removeSecret(Usuari user, String secret) throws InternalErrorException, InternalErrorException
Operation removeSecret- Parameters:
user-secret-- Throws:
InternalErrorException
-
setPassword
void setPassword(Usuari user, String passwordDomain, Password password) throws InternalErrorException, InternalErrorException
Operation setPassword- Parameters:
user-passwordDomain-password-- Throws:
InternalErrorException
-
setPassword
void setPassword(long accountId, Password value) throws InternalErrorException, InternalErrorExceptionOperation setPassword- Parameters:
accountId-value-- Throws:
InternalErrorException
-
setPasswordAndUpdateAccount
void setPasswordAndUpdateAccount(long accountId, Password value, boolean mustChange, Date expirationDate) throws InternalErrorException, InternalErrorExceptionOperation setPasswordAndUpdateAccount- Parameters:
accountId-value-mustChange-expirationDate-- Throws:
InternalErrorException
-
setSshPrivateKey
void setSshPrivateKey(long accountId, Password privateKey) throws InternalErrorException, InternalErrorExceptionOperation setSshPrivateKey- Parameters:
accountId-privateKey-- Throws:
InternalErrorException
-
-