Package io.datarouter.auth.service
Class DatarouterAccountCredentialService
java.lang.Object
io.datarouter.auth.service.DatarouterAccountCredentialService
@Singleton public class DatarouterAccountCredentialService extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatarouterAccountCredentialService.AccountKeystatic classDatarouterAccountCredentialService.AccountLookupDtostatic classDatarouterAccountCredentialService.DatarouterAccountSecretCredentialKeypairDtostatic classDatarouterAccountCredentialService.SecretCredentialDto -
Constructor Summary
Constructors Constructor Description DatarouterAccountCredentialService(BaseDatarouterAccountDao datarouterAccountDao, BaseDatarouterAccountCredentialDao datarouterAccountCredentialDao, BaseDatarouterAccountSecretCredentialDao datarouterAccountSecretCredentialDao, DatarouterAccountPermissionKeysByPrefixCache datarouterAccountPermissionKeysByPrefixCache, DatarouterAccountLastUsedDateService datarouterAccountLastUsedDateService, DatarouterAuthExecutors.DatarouterAccountCredentialCacheExecutor executor, io.datarouter.secret.service.SecretService secretService, io.datarouter.secret.service.SecretNamespacer secretNamespacer) -
Method Summary
-
Constructor Details
-
DatarouterAccountCredentialService
@Inject public DatarouterAccountCredentialService(BaseDatarouterAccountDao datarouterAccountDao, BaseDatarouterAccountCredentialDao datarouterAccountCredentialDao, BaseDatarouterAccountSecretCredentialDao datarouterAccountSecretCredentialDao, DatarouterAccountPermissionKeysByPrefixCache datarouterAccountPermissionKeysByPrefixCache, DatarouterAccountLastUsedDateService datarouterAccountLastUsedDateService, DatarouterAuthExecutors.DatarouterAccountCredentialCacheExecutor executor, io.datarouter.secret.service.SecretService secretService, io.datarouter.secret.service.SecretNamespacer secretNamespacer)
-
-
Method Details
-
scanPermissionsForApiKeyAuth
public io.datarouter.scanner.Scanner<DatarouterAccountPermissionKey> scanPermissionsForApiKeyAuth(String apiKey) -
findSecretKeyForApiKeyAuth
-
lookupAccountName
-
getCredentialStatusDto
public io.datarouter.httpclient.dto.DatarouterAccountCredentialStatusDto getCredentialStatusDto(javax.servlet.http.HttpServletRequest request) -
getCurrentDatarouterAccountName
-
getAccountNameForRequest
-
deleteAllCredentialsForAccount
public void deleteAllCredentialsForAccount(String accountName, io.datarouter.web.user.session.service.Session session) -
createCredential
public DatarouterAccountCredentialService.AccountKey createCredential(String accountName, String creatorUsername) -
deleteCredential
-
setCredentialActivation
-
createSecretCredential
public DatarouterAccountCredentialService.AccountKey createSecretCredential(String accountName, String creatorUsername, io.datarouter.secret.op.SecretOpReason reason) -
deleteSecretCredential
public boolean deleteSecretCredential(String secretName, io.datarouter.secret.op.SecretOpReason reason) -
deleteOrphanedCredentials
public void deleteOrphanedCredentials() -
setSecretCredentialActivation
-
getCredentialsByAccountName
-
getSecretCredentialsByAccountName
-