Hi, I'm trying to add my custom encryption for files on storage, but I've several doubts: 1) I think have to create a jar module with my implementation, extending DefaultBinaryMagager (getBinary and storeAndDigest) I guess… but cannot found maven dependencies for maven project of my module so I can't create a class that extends existing one 2) Once module is “jared”, I've to write an extension point xml, declaring there my module class (es org.nuxeo.XXX.XXX.CustomEncryptionBinaryManager)? It's also necessary declare it as BinaryManager in nuxeo.conf with notation “nuxeo.core.binarymanager=org.nuxeo.ecm.core.storage.sql.CustomEncryptionBinaryManager”? Thank you
Yes you need to create a JAR containing your code. To build the JAR you will likely use Maven and therefore need proper dependencies on the base Nuxeo JARs containing the interfaces you implement and the classes you extend. This is standard Java/Maven development. Please start at https://doc.nuxeo.com/corg/ if you're not familiar with the process.
And yes you will then have to change the configuration to use your class instead of the standard one.
Note that Nuxeo already contains an AES-based encrypting binary manager, see https://doc.nuxeo.com/nxdoc/implementing-encryption/ for more.