Interface PathEncryption


public interface PathEncryption
Encrypts and decrypts relative URI's using users' path encryption key.
  • Method Summary

    Modifier and Type
    Method
    Description
    Decrypts relative URL using path encryption key.
    encrypt(UserIDAuth forUser, Uri path)
    Encrypts relative URL using path encryption key.
  • Method Details

    • encrypt

      Uri encrypt(UserIDAuth forUser, Uri path)
      Encrypts relative URL using path encryption key.
      Parameters:
      forUser - Credentials to access path encryption key
      path - Path to encrypt
      Returns:
      Encrypted URL friendly path.
    • decryptor

      Function<Uri,Uri> decryptor(UserIDAuth forUser)
      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