public interface SignatureFactory
Modifier and Type | Interface and Description |
---|---|
static class |
SignatureFactory.SignatureException
签名异常类
|
Modifier and Type | Field and Description |
---|---|
static int |
SIGNATURE_FAILED_LOGIN |
Modifier and Type | Method and Description |
---|---|
Signature |
createBlacklistSignature(String clientId,
String conversationId,
List<String> memberIds,
String action)
实现黑名单相关的签名计算
|
Signature |
createConversationSignature(String conversationId,
String clientId,
List<String> targetIds,
String action)
实现 LCIMConversation 相关的签名计算
|
Signature |
createSignature(String peerId,
List<String> watchIds)
实现一个基础签名方法 其中的签名算法会在SessionManager和 LCIMClient(V2) 中被使用
|
static final int SIGNATURE_FAILED_LOGIN
Signature createSignature(String peerId, List<String> watchIds) throws SignatureFactory.SignatureException
peerId
- peer idwatchIds
- watch peer ids.SignatureFactory.SignatureException
- 如果签名计算中间发生任何问题请抛出本异常Signature createConversationSignature(String conversationId, String clientId, List<String> targetIds, String action) throws SignatureFactory.SignatureException
conversationId
- conversation idclientId
- owner client idtargetIds
- 操作所对应的数据action
- - 此次行为的动作,行为分别对应常量 invite(加群和邀请)和 kick(踢出群)SignatureFactory.SignatureException
- 如果签名计算中间发生任何问题请抛出本异常Signature createBlacklistSignature(String clientId, String conversationId, List<String> memberIds, String action) throws SignatureFactory.SignatureException
clientId
- 当前登录用户的 id,必须conversationId
- 目标对话的 id,可选memberIds
- 目标成员的 id,可选action
- 操作类型的字符串,有如下集中类型:
conversation-block-clients 在对话中拉黑部分成员,此时 conversationId 和 memberIds 是必须的。
conversation-unblock-clients 在对话中解禁部分成员,此时 conversationId 和 memberIds 是必须的。SignatureFactory.SignatureException
- 如果签名计算中间发生任何问题请抛出本异常Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.