类 LocalEncryptedDataKeyProcessor
java.lang.Object
com.alibaba.nacos.client.config.impl.LocalConfigInfoProcessor
com.alibaba.nacos.client.config.impl.LocalEncryptedDataKeyProcessor
Encrypted data key (EncryptedDataKey) local snapshot, disaster recovery directory related.
- 作者:
- luyanbo(RobberPhex)
-
字段概要
从类继承的字段 com.alibaba.nacos.client.config.impl.LocalConfigInfoProcessor
LOCAL_SNAPSHOT_PATH -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringgetEncryptDataKeyFailover(String envName, String dataId, String group, String tenant) Obtain the EncryptedDataKey of the disaster recovery configuration.static StringgetEncryptDataKeySnapshot(String envName, String dataId, String group, String tenant) Get the EncryptedDataKey of the locally cached file.static voidsaveEncryptDataKeySnapshot(String envName, String dataId, String group, String tenant, String encryptDataKey) Save the snapshot of encryptDataKey.从类继承的方法 com.alibaba.nacos.client.config.impl.LocalConfigInfoProcessor
cleanAllSnapshot, cleanEnvSnapshot, getFailover, getSnapshot, readFile, saveSnapshot
-
构造器详细资料
-
LocalEncryptedDataKeyProcessor
public LocalEncryptedDataKeyProcessor()
-
-
方法详细资料
-
getEncryptDataKeyFailover
public static String getEncryptDataKeyFailover(String envName, String dataId, String group, String tenant) Obtain the EncryptedDataKey of the disaster recovery configuration. NULL means there is no local file or an exception is thrown. -
getEncryptDataKeySnapshot
public static String getEncryptDataKeySnapshot(String envName, String dataId, String group, String tenant) Get the EncryptedDataKey of the locally cached file. NULL means there is no local file or an exception is thrown. -
saveEncryptDataKeySnapshot
public static void saveEncryptDataKeySnapshot(String envName, String dataId, String group, String tenant, String encryptDataKey) Save the snapshot of encryptDataKey. If the content is NULL, delete the snapshot.
-