Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 892 Bytes

data_encryptor.md

File metadata and controls

20 lines (12 loc) · 892 Bytes

Data Encryptor

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.

Writing Encryptor

Create a java file named JavaEncryptor.java locate in src/main/java/runflow, and writing the following content:

JavaEncryptor.java

Adding To Specification File

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 implemented top.myrest.myflow.component.SettingsContent interface class. To implement this function, you should know Jetpack Compose firstly.