Package es.caib.seycon.ng.sync.servei
Interface SecretStoreService
-
public interface SecretStoreService
Service SecretStoreService
-
-
Field Summary
Fields Modifier and Type Field Description static String
REMOTE_PATH
static String
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Account>
getAccountsWithPassword()
Operation getAccountsWithPasswordList<Secret>
getAllSecrets(Usuari user)
Operation getAllSecretsPassword
getPassword(long accountId)
Operation getPasswordPassword
getSecret(Usuari user, String secret)
Operation getSecretList<Secret>
getSecrets(Usuari user)
Operation getSecretsPassword
getSshPrivateKey(long accountId)
Operation getSshPrivateKeyCollection<Usuari>
getUsersWithSecrets()
Operation getUsersWithSecretsvoid
putSecret(Usuari user, String secret, Password value)
Operation putSecretvoid
reencode(Usuari user)
Operation reencodevoid
removeSecret(Usuari user, String secret)
Operation removeSecretvoid
setPassword(long accountId, Password value)
Operation setPasswordvoid
setPassword(Usuari user, String passwordDomain, Password password)
Operation setPasswordvoid
setPasswordAndUpdateAccount(long accountId, Password value, boolean mustChange, Date expirationDate)
Operation setPasswordAndUpdateAccountvoid
setSshPrivateKey(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, InternalErrorException
Operation setPassword- Parameters:
accountId
-value
-- Throws:
InternalErrorException
-
setPasswordAndUpdateAccount
void setPasswordAndUpdateAccount(long accountId, Password value, boolean mustChange, Date expirationDate) throws InternalErrorException, InternalErrorException
Operation setPasswordAndUpdateAccount- Parameters:
accountId
-value
-mustChange
-expirationDate
-- Throws:
InternalErrorException
-
setSshPrivateKey
void setSshPrivateKey(long accountId, Password privateKey) throws InternalErrorException, InternalErrorException
Operation setSshPrivateKey- Parameters:
accountId
-privateKey
-- Throws:
InternalErrorException
-
-