@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 DefaultPathEncryptionRuntimeDelegatable extends DefaultPathEncryption
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultPathEncryptionRuntimeDelegatable.ArgumentsCaptor |
| Constructor and Description |
|---|
DefaultPathEncryptionRuntimeDelegatable(OverridesRegistry context,
DefaultPathDigestConfig config) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
byteDeserializer(String input)
Deserializes encrypted bytes of document path.
|
String |
byteSerializer(byte[] bytes)
Serializes encrypted bytes of document path.
|
Cipher |
decryptionCipher(SecretKey secretKey) |
Cipher |
encryptionCipher(SecretKey secretKey) |
static void |
overrideWith(OverridesRegistry context,
Function<DefaultPathEncryptionRuntimeDelegatable.ArgumentsCaptor,DefaultPathEncryption> ctorCaptor)
This is a typesafe function to register overriding class into context.
|
@Inject public DefaultPathEncryptionRuntimeDelegatable(@Nullable OverridesRegistry context, DefaultPathDigestConfig config)
context - Context class to search for overrides.public Cipher encryptionCipher(SecretKey secretKey)
encryptionCipher in interface PathEncryptionConfigencryptionCipher in class DefaultPathEncryptionsecretKey - Use this secret keysecretKeypublic Cipher decryptionCipher(SecretKey secretKey)
decryptionCipher in interface PathEncryptionConfigdecryptionCipher in class DefaultPathEncryptionsecretKey - Use this secret keysecretKeypublic String byteSerializer(byte[] bytes)
PathEncryptionConfigbyteSerializer in interface PathEncryptionConfigbyteSerializer in class DefaultPathEncryptionbytes - Encrypted path as bytespublic byte[] byteDeserializer(String input)
PathEncryptionConfigbyteDeserializer in interface PathEncryptionConfigbyteDeserializer in class DefaultPathEncryptioninput - String representation of encrypted pathpublic static void overrideWith(OverridesRegistry context, Function<DefaultPathEncryptionRuntimeDelegatable.ArgumentsCaptor,DefaultPathEncryption> ctorCaptor)
Copyright © 2019. All rights reserved.