Interface PathEncryption
public interface PathEncryption
Encrypts and decrypts relative URI's using users' path encryption key.
-
Method Summary
Modifier and TypeMethodDescriptiondecryptor(UserIDAuth forUser) Decrypts relative URL using path encryption key.encrypt(UserIDAuth forUser, Uri path) Encrypts relative URL using path encryption key.
-
Method Details
-
encrypt
Encrypts relative URL using path encryption key.- Parameters:
forUser- Credentials to access path encryption keypath- Path to encrypt- Returns:
- Encrypted URL friendly path.
-
decryptor
Decrypts relative URL using path encryption key.- Parameters:
forUser- Credentials to access path encryption key- Returns:
- Function to decrypt path with cached (locally as lambda capture) encryption key, that when applied on encrypted path returns decrypted path. Function: Encrypted URI -> Decrypted URI
-