Package net.mamoe.mirai.internal.spi
Interface EncryptService
-
- All Implemented Interfaces:
@Deprecated(message = "该操作在 overflow 中无效", level = DeprecationLevel.ERROR) public interface EncryptService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEncryptService.SignResultpublic final classEncryptService.ChannelResultpublic interfaceEncryptService.ChannelProxypublic interfaceEncryptService.Factorypublic classEncryptService.Companionpublic classEncryptService.SignalServiceNotAvailable
-
Method Summary
Modifier and Type Method Description abstract Unitinitialize(EncryptServiceContext context)Booleansupports(BotConfiguration.MiraiProtocol protocol)Returns falseif not supported.abstract ByteArrayencryptTlv(EncryptServiceContext context, Integer tlvType, ByteArray payload)Returns nullif encrypt fail.abstract EncryptService.SignResultqSecurityGetSign(EncryptServiceContext context, Integer sequenceId, String commandName, ByteArray payload)-
-
Method Detail
-
initialize
abstract Unit initialize(EncryptServiceContext context)
-
encryptTlv
abstract ByteArray encryptTlv(EncryptServiceContext context, Integer tlvType, ByteArray payload)
Returns
nullif encrypt fail.
-
qSecurityGetSign
abstract EncryptService.SignResult qSecurityGetSign(EncryptServiceContext context, Integer sequenceId, String commandName, ByteArray payload)
-
-
-
-