Class ServiceAccountAuthServiceImpl
java.lang.Object
com.atlassian.crowd.manager.service.ServiceAccountAuthServiceImpl
- All Implemented Interfaces:
ServiceAccountAuthService
@Transactional
public class ServiceAccountAuthServiceImpl
extends Object
implements ServiceAccountAuthService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAuth(ServiceAccount serviceAccount, ServiceAccountAuthMethod auth) Deletes authentication method assigned to the service accountFinds service accounts based on the provided authentication methodfindByAuthMethods(Set<ServiceAccountAuthMethod> authMethods) Fetches all service accounts matching a set of provided auth methods.getAuthMethods(long serviceAccountId) Finds all authentication methods assigned to the service accountvoidupdateAuth(ServiceAccount serviceAccount, ServiceAccountAuthMethod auth) Updates a service account and authentication method
-
Field Details
-
OAUTH2_TYPE_IDENTIFIER
- See Also:
-
-
Constructor Details
-
ServiceAccountAuthServiceImpl
-
-
Method Details
-
getAuthMethods
Description copied from interface:ServiceAccountAuthServiceFinds all authentication methods assigned to the service account- Specified by:
getAuthMethodsin interfaceServiceAccountAuthService- Parameters:
serviceAccountId- to search for- Returns:
- the authentication methods assigned to the service account
-
updateAuth
Description copied from interface:ServiceAccountAuthServiceUpdates a service account and authentication method- Specified by:
updateAuthin interfaceServiceAccountAuthService- Parameters:
serviceAccount- to modifyauth- to modify
-
deleteAuth
Description copied from interface:ServiceAccountAuthServiceDeletes authentication method assigned to the service account- Specified by:
deleteAuthin interfaceServiceAccountAuthService- Parameters:
serviceAccount- from which to delete the authentication methodauth- to delete
-
findByAuthMethod
Description copied from interface:ServiceAccountAuthServiceFinds service accounts based on the provided authentication method- Specified by:
findByAuthMethodin interfaceServiceAccountAuthService- Parameters:
auth- to search for- Returns:
- the service account if exists, none otherwise
-
findByAuthMethods
@Nonnull public Map<String,ServiceAccount> findByAuthMethods(@Nullable Set<ServiceAccountAuthMethod> authMethods) Description copied from interface:ServiceAccountAuthServiceFetches all service accounts matching a set of provided auth methods. If null or an empty set is passed in then nothing will be returned.- Specified by:
findByAuthMethodsin interfaceServiceAccountAuthService- Parameters:
authMethods- Set of auth methods to search for- Returns:
- Map of auth method IDs to their corresponding service accounts (if found).
-