public class DefaultPathEncryption extends Object implements PathEncryptionConfig
DefaultPathDigestConfig and
encodes resulting bytes using Base64-urlsafe encoding.| Constructor and Description |
|---|
DefaultPathEncryption(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) |
@Inject public DefaultPathEncryption(DefaultPathDigestConfig config)
public Cipher encryptionCipher(SecretKey secretKey)
encryptionCipher in interface PathEncryptionConfigsecretKey - Use this secret keysecretKeypublic Cipher decryptionCipher(SecretKey secretKey)
decryptionCipher in interface PathEncryptionConfigsecretKey - Use this secret keysecretKeypublic String byteSerializer(byte[] bytes)
PathEncryptionConfigbyteSerializer in interface PathEncryptionConfigbytes - Encrypted path as bytespublic byte[] byteDeserializer(String input)
PathEncryptionConfigbyteDeserializer in interface PathEncryptionConfiginput - String representation of encrypted pathCopyright © 2019. All rights reserved.