Interface SymmetricPathEncryptionService


public interface SymmetricPathEncryptionService
Encrypts and decrypts relative URI's using symmetric cryptography.
  • Method Details

    • encrypt

      Uri encrypt(AuthPathEncryptionSecretKey pathEncryptionSecretKey, Uri bucketPath)
      Encrypts relative URI using secret key and serializes it into URL-friendly format.
      Parameters:
      pathEncryptionSecretKey - entity with keys for encrypt path
      bucketPath - Path to encrypt
      Returns:
      Encrypted relative URI that can be safely published.
    • decrypt

      Uri decrypt(AuthPathEncryptionSecretKey pathEncryptionSecretKey, Uri bucketPath)
      Decrypts relative URI using secret key.
      Parameters:
      pathEncryptionSecretKey - entity with keys for decrypt path
      bucketPath - Path to decrypt
      Returns:
      Decrypted relative URI typically containing some sensitive information.