Interface SecretStoreAPI

  • All Known Implementing Classes:
    SecretStoreImpl

    public interface SecretStoreAPI
    Exposes the Public API related with encryption functionalities
    • Method Detail

      • encrypt

        String encrypt​(String documentId,
                       String content,
                       int threshold)
                throws EncryptionException
        Encrypts a document using Secret Store
        Parameters:
        documentId - the id of the document
        content - the content
        threshold - secret store threshold
        Returns:
        a String with the encrypted content
        Throws:
        EncryptionException - EncryptionException
      • decrypt

        String decrypt​(String documentId,
                       String encryptedContent)
                throws EncryptionException
        Decrypts a document using Secret Store
        Parameters:
        documentId - the id of the document
        encryptedContent - the encrypted content of the document
        Returns:
        a String with the decrypted content
        Throws:
        EncryptionException - EncryptionException