Package org.saidone.service.crypto
Interface KeyService
- All Known Implementing Classes:
KeyServiceImpl
public interface KeyService
Service responsible for managing encryption keys used to protect nodes in the
vault. Implementations typically handle key rotation and re-encryption of
persisted data.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRe-encrypts the node identified by the given ID using the latest available key version and persists the updated node.voidupdateKeys(int sourceVersion) Re-encrypts all nodes currently protected with the specified key version to the latest version.
-
Method Details
-
updateKey
Re-encrypts the node identified by the given ID using the latest available key version and persists the updated node.- Parameters:
nodeId- the Alfresco node identifier
-
updateKeys
void updateKeys(int sourceVersion) Re-encrypts all nodes currently protected with the specified key version to the latest version.- Parameters:
sourceVersion- the encryption key version currently used by the nodes that should be updated
-