Interface SymmetricPathEncryptionService
public interface SymmetricPathEncryptionService
Encrypts and decrypts relative URI's using symmetric cryptography.
-
Method Summary
Modifier and TypeMethodDescriptiondecrypt(AuthPathEncryptionSecretKey pathEncryptionSecretKey, Uri bucketPath) Decrypts relative URI using secret key.encrypt(AuthPathEncryptionSecretKey pathEncryptionSecretKey, Uri bucketPath) Encrypts relative URI using secret key and serializes it into URL-friendly format.
-
Method Details
-
encrypt
Encrypts relative URI using secret key and serializes it into URL-friendly format.- Parameters:
pathEncryptionSecretKey- entity with keys for encrypt pathbucketPath- Path to encrypt- Returns:
- Encrypted relative URI that can be safely published.
-
decrypt
Decrypts relative URI using secret key.- Parameters:
pathEncryptionSecretKey- entity with keys for decrypt pathbucketPath- Path to decrypt- Returns:
- Decrypted relative URI typically containing some sensitive information.
-