Class DefaultDFSConfig
java.lang.Object
de.adorsys.datasafe.directory.impl.profile.config.DefaultDFSConfig
- All Implemented Interfaces:
DFSConfig
- Direct Known Subclasses:
DFSConfigWithStorageCreds,MultiDFSConfig
Default DFS folders layout provider, suitable both for s3 and filesystem.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected final ReadStorePasswordprotected final Uriprotected final UserProfileLocationprotected static final Stringprotected static final String -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDFSConfig(Uri systemRoot, ReadStorePassword systemPassword) DefaultDFSConfig(Uri systemRoot, ReadStorePassword systemPassword, UserProfileLocation userProfileLocation) DefaultDFSConfig(String systemRoot, ReadStorePassword systemPassword) DefaultDFSConfig(String systemRoot, Supplier<char[]> systemPassword) DefaultDFSConfig(URI systemRoot, ReadStorePassword systemPassword) DefaultDFSConfig(URI systemRoot, Supplier<char[]> systemPassword) -
Method Summary
Modifier and TypeMethodDescriptionprotected AbsoluteLocation<PublicResource>protected AbsoluteLocation<PrivateResource>accessPrivate(Uri path) static UriaddTrailingSlashIfNeeded(Uri systemRoot) static StringaddTrailingSlashIfNeeded(String systemRoot) static URIaddTrailingSlashIfNeeded(URI systemRoot) protected AbsoluteLocation<PublicResource>dfsRoot()Where system files like users' private and public profile are located within DFS.protected Uriprotected AbsoluteLocation<PrivateResource>locatePrivateProfile(UserID ofUser) protected AbsoluteLocation<PublicResource>locatePublicProfile(UserID ofUser) privateProfile(UserID forUser) protected UripublicKeys(Uri rootLocation) publicProfile(UserID forUser) protected Uri
-
Field Details
-
USERS_ROOT
- See Also:
-
PRIVATE_COMPONENT
- See Also:
-
PRIVATE_FILES_COMPONENT
- See Also:
-
PUBLIC_COMPONENT
- See Also:
-
INBOX_COMPONENT
- See Also:
-
VERSION_COMPONENT
- See Also:
-
systemRoot
-
systemPassword
-
userProfileLocation
-
-
Constructor Details
-
DefaultDFSConfig
- Parameters:
systemRoot- Root location for all files - private files, user profiles, etc. For example you want to place everything in datasafe/system directory within storagesystemPassword- System password to open keystore
-
DefaultDFSConfig
- Parameters:
systemRoot- Root location for all files - private files, user profiles, etc. For example you want to place everything in datasafe/system directory within storagesystemPassword- System password to open keystore
-
DefaultDFSConfig
- Parameters:
systemRoot- Root location for all files - private files, user profiles, etc. For example you want to place everything in datasafe/system directory within storagesystemPassword- System password to open keystore
-
DefaultDFSConfig
- Parameters:
systemRoot- Root location for all files - private files, user profiles, etc. For example you want to place everything in datasafe/system directory within storagesystemPassword- System password to open keystore
-
DefaultDFSConfig
- Parameters:
systemRoot- Root location for all files - private files, user profiles, etc. For example you want to place everything in datasafe/system directory within storagesystemPassword- System password to open keystore
-
DefaultDFSConfig
public DefaultDFSConfig(Uri systemRoot, ReadStorePassword systemPassword, UserProfileLocation userProfileLocation) - Parameters:
systemRoot- Root location for all files - private files, user profiles, etc. For example you want to place everything in datasafe/system directory within storagesystemPassword- System password to open keystoreuserProfileLocation- Bootstrap for user profile files placement
-
-
Method Details
-
privateKeyStoreAuth
- Specified by:
privateKeyStoreAuthin interfaceDFSConfig
-
publicProfile
- Specified by:
publicProfilein interfaceDFSConfig
-
privateProfile
- Specified by:
privateProfilein interfaceDFSConfig
-
defaultPrivateTemplate
- Specified by:
defaultPrivateTemplatein interfaceDFSConfig
-
defaultPublicTemplate
- Specified by:
defaultPublicTemplatein interfaceDFSConfig
-
userRoot
-
dfsRoot
Where system files like users' private and public profile are located within DFS. -
locatePrivateProfile
-
locatePublicProfile
-
access
-
accessPrivate
-
inbox
-
publicKeys
-
addTrailingSlashIfNeeded
-
addTrailingSlashIfNeeded
-
addTrailingSlashIfNeeded
-