@Generated(value="de.adorsys.datasafe.runtimedelegate.RuntimeDelegateGenerator", comments="This class performs functionality delegation based on contextClass content. If contextClass contains overriding class - it will be used.") public class PathSegmentEncryptorDecryptorRuntimeDelegatable extends PathSegmentEncryptorDecryptor
| Modifier and Type | Class and Description |
|---|---|
static class |
PathSegmentEncryptorDecryptorRuntimeDelegatable.ArgumentsCaptor |
| Constructor and Description |
|---|
PathSegmentEncryptorDecryptorRuntimeDelegatable(OverridesRegistry context,
org.cryptomator.siv.SivMode sivMode) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(AuthPathEncryptionSecretKey pathSecretKey,
byte[] encryptedPath,
byte[] associated) |
byte[] |
encrypt(AuthPathEncryptionSecretKey pathSecretKey,
byte[] originalPath,
byte[] associated) |
static void |
overrideWith(OverridesRegistry context,
Function<PathSegmentEncryptorDecryptorRuntimeDelegatable.ArgumentsCaptor,PathSegmentEncryptorDecryptor> ctorCaptor)
This is a typesafe function to register overriding class into context.
|
@Inject public PathSegmentEncryptorDecryptorRuntimeDelegatable(@Nullable OverridesRegistry context, org.cryptomator.siv.SivMode sivMode)
context - Context class to search for overrides.public byte[] encrypt(AuthPathEncryptionSecretKey pathSecretKey, byte[] originalPath, byte[] associated)
encrypt in interface PathEncryptorDecryptorencrypt in class PathSegmentEncryptorDecryptorpathSecretKey - entity that contains keys for encrypt pathoriginalPath - path to encryptassociated - Associated data to authenticatepathSecretKeypublic byte[] decrypt(AuthPathEncryptionSecretKey pathSecretKey, byte[] encryptedPath, byte[] associated)
decrypt in interface PathEncryptorDecryptordecrypt in class PathSegmentEncryptorDecryptorpathSecretKey - entity that contains keys for decrypt pathencryptedPath - path to decryptassociated - Associated data to authenticatepathSecretKeypublic static void overrideWith(OverridesRegistry context, Function<PathSegmentEncryptorDecryptorRuntimeDelegatable.ArgumentsCaptor,PathSegmentEncryptorDecryptor> ctorCaptor)
Copyright © 2019. All rights reserved.