public class ProfileRegistrationServiceImpl extends Object implements ProfileRegistrationService
| Constructor and Description |
|---|
ProfileRegistrationServiceImpl(KeyStoreOperations keyStoreOper,
BucketAccessService access,
StorageCheckService checkService,
StorageWriteService writeService,
GsonSerde serde,
DFSConfig dfsConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
registerPrivate(CreateUserPrivateProfile profile)
Register users' private profile at the location specified by
DFSConfig, creates keystore and publishes
public keys, but only if keystore doesn't exist. |
void |
registerPublic(CreateUserPublicProfile profile)
Register users' public profile at the location specified by
DFSConfig, overwrites it if exists. |
void |
registerUsingDefaults(UserIDAuth user)
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.
|
void |
updateReadKeyPassword(UserIDAuth forUser,
ReadKeyPassword newPassword) |
@Inject public ProfileRegistrationServiceImpl(KeyStoreOperations keyStoreOper, BucketAccessService access, StorageCheckService checkService, StorageWriteService writeService, GsonSerde serde, DFSConfig dfsConfig)
public void registerPublic(CreateUserPublicProfile profile)
DFSConfig, 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.registerPublic in interface ProfileRegistrationServicepublic void registerPrivate(CreateUserPrivateProfile profile)
DFSConfig, 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.registerPrivate in interface ProfileRegistrationServicepublic void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword)
updateReadKeyPassword in interface ProfileRegistrationServicepublic void registerUsingDefaults(UserIDAuth user)
registerUsingDefaults in interface ProfileRegistrationServiceuser - User authorization to registerCopyright © 2019. All rights reserved.