public interface KeyExchangeStorage
Modifier and Type | Method and Description |
---|---|
void |
addAlias(String storageKey,
String storageKeyAlias)
添加存储key别名
|
String |
getExchangeKey(String storageKey)
获得交换密钥
|
String |
getPrivateKeyBase64(String storageKey)
获得服务器与客户端第一步密钥交换所生成的私钥
|
void |
setExchangeKey(String storageKey,
String exchangeKey)
设置交换密钥
|
void |
setPrivateKeyBase64(String storageKey,
String privateKeyBase64)
设置服务器与客户端第一步密钥交换所生成的私钥
|
String getPrivateKeyBase64(String storageKey)
storageKey
- 存储时的唯一键,如:UUID、token、userId等。void setPrivateKeyBase64(String storageKey, String privateKeyBase64)
storageKey
- 存储时的唯一键,如:UUID、token、userId等。privateKeyBase64
- 第一步密钥交换所生成的私钥String getExchangeKey(String storageKey)
storageKey
- 存储时的唯一键,如:UUID、token、userId等。void setExchangeKey(String storageKey, String exchangeKey)
storageKey
- 存储时的唯一键,如:UUID、token、userId等。exchangeKey
- 交换密钥Copyright © 2022 Pivotal Software, Inc.. All rights reserved.