Package org.duracloud.mill.credentials
Interface CredentialsRepo
-
- All Known Implementing Classes:
CredentialsRepoBase
public interface CredentialsRepoThis interface mediates all interaction with the credential-providing subsystem.- Author:
- Daniel Bernstein
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccountCredentialsgetAccountCredentials(String account)Returns a list of storage provider associated with an accountList<String>getActiveAccounts()Returns a list of accountsStorageProviderCredentialsgetStorageProviderCredentials(String account, String storeId)Returns a set of credentials associated with an account.booleanisAccountActive(String account)Returns true if the account is active.
-
-
-
Method Detail
-
getStorageProviderCredentials
StorageProviderCredentials getStorageProviderCredentials(String account, String storeId) throws CredentialsRepoException
Returns a set of credentials associated with an account.- Parameters:
account- The id of the DuraCloud account - maps directly to the subdomain.storeId- The storage provider id- Returns:
- Throws:
CredentialsRepoException
-
getActiveAccounts
List<String> getActiveAccounts() throws CredentialsRepoException
Returns a list of accounts- Returns:
- Throws:
CredentialsRepoException
-
getAccountCredentials
AccountCredentials getAccountCredentials(String account) throws AccountCredentialsNotFoundException
Returns a list of storage provider associated with an account- Parameters:
account-- Returns:
- Throws:
CredentialsRepoExceptionAccountCredentialsNotFoundException
-
isAccountActive
boolean isAccountActive(String account) throws AccountCredentialsNotFoundException
Returns true if the account is active.- Parameters:
account-- Returns:
- Throws:
AccountCredentialsNotFoundException- if no account found.
-
-