Package io.keyko.nevermined.api
Interface SecretStoreAPI
-
- All Known Implementing Classes:
SecretStoreImpl
public interface SecretStoreAPI
Exposes the Public API related with encryption functionalities
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
decrypt(String documentId, String encryptedContent)
Decrypts a document using Secret StoreString
encrypt(String documentId, String content, int threshold)
Encrypts a document using Secret Store
-
-
-
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 documentcontent
- the contentthreshold
- 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 documentencryptedContent
- the encrypted content of the document- Returns:
- a String with the decrypted content
- Throws:
EncryptionException
- EncryptionException
-
-