public class RedisKeyExchangeStorage extends Object implements KeyExchangeStorage
Constructor and Description |
---|
RedisKeyExchangeStorage() |
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)
设置服务器与客户端第一步密钥交换所生成的私钥
|
public String getPrivateKeyBase64(String storageKey)
getPrivateKeyBase64
in interface KeyExchangeStorage
storageKey
- 存储时的唯一键,如:UUID、token、userId等。public void setPrivateKeyBase64(String storageKey, String privateKeyBase64)
setPrivateKeyBase64
in interface KeyExchangeStorage
storageKey
- 存储时的唯一键,如:UUID、token、userId等。privateKeyBase64
- 第一步密钥交换所生成的私钥public String getExchangeKey(String storageKey)
getExchangeKey
in interface KeyExchangeStorage
storageKey
- 存储时的唯一键,如:UUID、token、userId等。public void setExchangeKey(String storageKey, String exchangeKey)
setExchangeKey
in interface KeyExchangeStorage
storageKey
- 存储时的唯一键,如:UUID、token、userId等。exchangeKey
- 交换密钥public void addAlias(String storageKey, String storageKeyAlias)
addAlias
in interface KeyExchangeStorage
storageKey
- 存储时的唯一键,如:UUID、token、userId等。storageKeyAlias
- 存储别名Copyright © 2022 Pivotal Software, Inc.. All rights reserved.