In this section, we'll write a simple encryptor that implements by base64, just explaining to you how to provide data encryptor to our data synchronization service.
Create a java file named JavaEncryptor.java
locate in src/main/java/runflow
, and writing the following content:
Add the following content to plugin-spec.yml
:
data-encryptors:
- runflow.JavaEncryptor
How to customize the encryptor settings content? Override the method
getSettingsContent
, and return an instance which implementedtop.myrest.myflow.component.SettingsContent
interface class. To implement this function, you should know Jetpack Compose firstly.