interface IKeyRepository
cangjie
public interface IKeyRepository功能:定义密钥持久化仓储接口。
成员概览
| 成员 | 功能 |
|---|---|
| func getAll() | 读取仓储中的全部密钥文档。 |
| func store(JsonObject, String) | 保存一份密钥文档。 |
func getAll()
cangjie
func getAll(): ReadOnlyList<JsonObject>功能:读取仓储中的全部密钥文档。
返回值:
ReadOnlyList<JsonObject>- 返回密钥文档列表。
func store(JsonObject, String)
cangjie
func store(jsonObject: JsonObject, friendlyName: String): Unit功能:保存一份密钥文档。
参数:
- jsonObject:
JsonObject- 需要保存的密钥文档。 - friendlyName:
String- 便于识别的友好名称。
返回值:
Unit