Class DefaultCredentialsRepoImpl
- java.lang.Object
-
- org.duracloud.mill.credentials.impl.DefaultCredentialsRepoImpl
-
- All Implemented Interfaces:
CredentialsRepo
@Component public class DefaultCredentialsRepoImpl extends Object implements CredentialsRepo
A jpa-based implementation of theCredentialsRepo.- Author:
- Daniel Bernstein Date: Oct 29, 2013
-
-
Constructor Summary
Constructors Constructor Description DefaultCredentialsRepoImpl(org.duracloud.account.db.repo.DuracloudAccountRepo accountRepo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountCredentialsgetAccountCredentials(String account)List<String>getActiveAccounts()StorageProviderCredentialsgetStorageProviderCredentials(String subdomain, String storeId)booleanisAccountActive(String account)
-
-
-
Method Detail
-
getAccountCredentials
public AccountCredentials getAccountCredentials(String account) throws AccountCredentialsNotFoundException
- Specified by:
getAccountCredentialsin interfaceCredentialsRepo- Throws:
AccountCredentialsNotFoundException
-
getActiveAccounts
public List<String> getActiveAccounts() throws CredentialsRepoException
- Specified by:
getActiveAccountsin interfaceCredentialsRepo- Throws:
CredentialsRepoException
-
getStorageProviderCredentials
public StorageProviderCredentials getStorageProviderCredentials(String subdomain, String storeId) throws AccountCredentialsNotFoundException, StorageProviderCredentialsNotFoundException
- Specified by:
getStorageProviderCredentialsin interfaceCredentialsRepo- Throws:
AccountCredentialsNotFoundExceptionStorageProviderCredentialsNotFoundException
-
isAccountActive
public boolean isAccountActive(String account) throws AccountCredentialsNotFoundException
- Specified by:
isAccountActivein interfaceCredentialsRepo- Throws:
AccountCredentialsNotFoundException
-
-