Class RegexAccessServiceWithStorageCredentialsImpl
java.lang.Object
de.adorsys.datasafe.directory.impl.profile.dfs.RegexAccessServiceWithStorageCredentialsImpl
- All Implemented Interfaces:
BucketAccessService
- Direct Known Subclasses:
RegexAccessServiceWithStorageCredentialsImplRuntimeDelegatable
public class RegexAccessServiceWithStorageCredentialsImpl
extends Object
implements BucketAccessService
Specifies how to access desired user resource (example: private bucket). Reads credentials that are associated
with provided URI using
StorageKeyStoreOperations.
Matches credentials with requested URI using regex-pattern.-
Constructor Summary
ConstructorsConstructorDescriptionRegexAccessServiceWithStorageCredentialsImpl(dagger.Lazy<StorageKeyStoreOperations> storageKeyStoreOperations) -
Method Summary
Modifier and TypeMethodDescriptionprivateAccessFor(UserIDAuth user, PrivateResource resource) Regex-match associated private resource URI'spublicAccessFor(UserID user, PublicResource resource) Do nothing, just wrap, real use case would be to plug user credentials to access bucket.withSystemAccess(AbsoluteLocation resource) Do nothing, just wrap, real use case would be to plug user credentials to access bucket.
-
Constructor Details
-
RegexAccessServiceWithStorageCredentialsImpl
@Inject public RegexAccessServiceWithStorageCredentialsImpl(dagger.Lazy<StorageKeyStoreOperations> storageKeyStoreOperations)
-
-
Method Details
-
privateAccessFor
public AbsoluteLocation<PrivateResource> privateAccessFor(UserIDAuth user, PrivateResource resource) Regex-match associated private resource URI's- Specified by:
privateAccessForin interfaceBucketAccessService
-
publicAccessFor
Do nothing, just wrap, real use case would be to plug user credentials to access bucket.- Specified by:
publicAccessForin interfaceBucketAccessService
-
withSystemAccess
Do nothing, just wrap, real use case would be to plug user credentials to access bucket.- Specified by:
withSystemAccessin interfaceBucketAccessService
-