feat: add SensitiveKeysConfig record and SensitiveKeysRepository interface
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
package com.cameleer3.server.core.admin;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public record SensitiveKeysConfig(List<String> keys) {
|
||||||
|
|
||||||
|
public SensitiveKeysConfig {
|
||||||
|
keys = keys != null ? List.copyOf(keys) : List.of();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.cameleer3.server.core.admin;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface SensitiveKeysRepository {
|
||||||
|
Optional<SensitiveKeysConfig> find();
|
||||||
|
void save(SensitiveKeysConfig config, String updatedBy);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user