Package org.duracloud.mill.credentials
Interface CredentialsRepo
- All Known Implementing Classes:
CredentialsRepoBase
public interface CredentialsRepo
This interface mediates all interaction with the credential-providing subsystem.
- Author:
- Daniel Bernstein
-
Method Summary
Modifier and TypeMethodDescriptiongetAccountCredentials(String account) Returns a list of storage provider associated with an accountReturns a list of accountsgetStorageProviderCredentials(String account, String storeId) Returns a set of credentials associated with an account.booleanisAccountActive(String account) Returns true if the account is active.
-
Method Details
-
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
Returns a list of accounts- Returns:
- Throws:
CredentialsRepoException
-
getAccountCredentials
Returns a list of storage provider associated with an account- Parameters:
account-- Returns:
- Throws:
CredentialsRepoExceptionAccountCredentialsNotFoundException
-
isAccountActive
Returns true if the account is active.- Parameters:
account-- Returns:
- Throws:
AccountCredentialsNotFoundException- if no account found.
-