Class ProfileRegistrationServiceImpl
java.lang.Object
de.adorsys.datasafe.directory.impl.profile.operations.actions.ProfileRegistrationServiceImpl
- All Implemented Interfaces:
ProfileRegistrationService
- Direct Known Subclasses:
ProfileRegistrationServiceImplRuntimeDelegatable
-
Constructor Summary
ConstructorsConstructorDescriptionProfileRegistrationServiceImpl(ProfileStoreService storeProfile, StorageKeyStoreOperations storageKeyStoreOper, DocumentKeyStoreOperations keyStoreOper, BucketAccessService access, StorageCheckService checkService, StorageWriteService writeService, GsonSerde serde, DFSConfig dfsConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAllAllowableKeystores(UserIDAuth user, UserPrivateProfile profile) voidcreateDocumentKeystore(UserIDAuth user, UserPrivateProfile profile) voidvoidregisterPrivate(CreateUserPrivateProfile profile) Register users' private profile at the location specified byDFSConfig, creates keystore and publishes public keys, but only if keystore doesn't exist.voidregisterPublic(CreateUserPublicProfile profile) Register users' public profile at the location specified byDFSConfig, overwrites it if exists.voidIMPORTANT: For cases when user profile is stored on S3 without object locks, this requires some global synchronization due to eventual consistency or you need to supply globally unique username on registration.
-
Constructor Details
-
ProfileRegistrationServiceImpl
@Inject public ProfileRegistrationServiceImpl(ProfileStoreService storeProfile, StorageKeyStoreOperations storageKeyStoreOper, DocumentKeyStoreOperations keyStoreOper, BucketAccessService access, StorageCheckService checkService, StorageWriteService writeService, GsonSerde serde, DFSConfig dfsConfig)
-
-
Method Details
-
registerPublic
Register users' public profile at the location specified byDFSConfig, overwrites it if exists. IMPORTANT: For cases when user profile is stored on S3 without object locks, this requires some global synchronization due to eventual consistency or you need to supply globally unique username on registration.- Specified by:
registerPublicin interfaceProfileRegistrationService
-
registerPrivate
Register users' private profile at the location specified byDFSConfig, creates keystore and publishes public keys, but only if keystore doesn't exist. IMPORTANT: For cases when user profile is stored on S3 without object locks, this requires some global synchronization due to eventual consistency or you need to supply globally unique username on registration.- Specified by:
registerPrivatein interfaceProfileRegistrationService
-
createAllAllowableKeystores
- Specified by:
createAllAllowableKeystoresin interfaceProfileRegistrationService
-
createDocumentKeystore
- Specified by:
createDocumentKeystorein interfaceProfileRegistrationService
-
createStorageKeystore
- Specified by:
createStorageKeystorein interfaceProfileRegistrationService
-
registerUsingDefaults
IMPORTANT: For cases when user profile is stored on S3 without object locks, this requires some global synchronization due to eventual consistency or you need to supply globally unique username on registration.- Specified by:
registerUsingDefaultsin interfaceProfileRegistrationService- Parameters:
user- User authorization to register
-