NIMServerConfig class

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

NIMServerConfig({String? module, int publicKeyVersion = 0, String? lbs, String? defaultLink, String? nosUploadLbs, String? nosUploadDefaultLink, String? nosUpload, bool nosSupportHttps = true, String? nosDownloadUrlFormat, String? nosDownload, String? nosAccess, AsymmetricType negoKeyNeca = AsymmetricType.rsa, int? negoKeyEncaKeyVersion, String? negoKeyEncaKeyParta, String? negoKeyEncaKeyPartb, SymmetryType commEnca = SymmetryType.rc4, String? linkIpv6, IPVersion ipProtocolVersion = IPVersion.ipv4, String? probeIpv4Url, String? probeIpv6Url, NimHandshakeType handshakeType = NimHandshakeType.v1, bool nosCdnEnable = true, Set<String>? nosDownloadSet})
NIMServerConfig.fromJson(Map<String, dynamic> json)
factory

Properties

commEnca SymmetryType
通信加密算法 {1(RC4), 2(AES128), 4(SM4)} 默认: 1(RC4) 对称加密SymmetryType.rc4
final
IM 默认的link服务器地址,当IM LBS不可用时先连接该地址 填"IP/Host:PORT"
final
handshakeType NimHandshakeType
握手协议选择字段,默认NimHandshakeType.v1
final
hashCode int
The hash code for this object.
no setterinherited
ipProtocolVersion IPVersion
IP协议版本{0(IPV4), 1(IPV6), 2(Auto, SDK测试后自行选择, 存在性能损耗)}。 默认: 0(IPV4) 非对称加密IPVersion.ipv4
final
lbs String?
IM LBS服务器地址,通过它获取IM link 地址信息 填http/https地址 NIMServerConfig.lbsBackup
final
linkIpv6 String?
ipv6的缺省连接地址
final
module String?
连接云信服务器加密数据通道的公钥参数1 rsaModulus
final
negoKeyEncaKeyParta String?
"交换密钥"协议加密算法密钥 part A 自定义时则必填 BigNumHex string 不含0x RSA: module, SM2: X
final
negoKeyEncaKeyPartb String?
"交换密钥"协议加密算法密钥 part B 自定义时则必填 BigNumHex string 不含0x RSA: EXP, SM2: Y
final
negoKeyEncaKeyVersion int?
"交换密钥"协议加密算法密钥版本 version 自定义时则必填
final
negoKeyNeca AsymmetricType
"交换密钥"协议加密算法 {1(RSA),2(SM2)}, def:1(RSA) 非对称加密,默认 AsymmetricType.rsa
final
nosAccess String?
NOS下载加速域名/地址,用于替换NOS下载url中的 nosDownload。 提供两种方式:
final
nosCdnEnable bool
是否优先使用Cdn域名进行NOS下载,默认true
final
nosDownload String?
NOS下载地址的host,用于拼接最终获得的文件URL地址,也支持该host替换成下载加速域名/地址 nosAccess. 填host地址, 默认是 nos.netease.com
final
nosDownloadSet Set<String>?
每个元素为使用过的NOS下载地址的特征以及桶名是否在host中组成的{@link Pair}对象 如new Pair("nim.nos.netease.com", true), new Pair("nos.netease.com/nim", false)等
final
nosDownloadUrlFormat String?
NOS下载地址拼接模板,用于拼接最终得到的下载地址。 默认是 {bucket}.nosdn.127.net/{object},SDK 上传资源后生成的下载地址为 https://bucket.nosdn.127.net/object
final
nosSupportHttps bool
NOS上传是否需要支持https。SDK 3.2版本后默认支持https,同时需要配置 nosUpload, 默认 true;
final
nosUpload String?
NOS上传服务器主机地址(仅nosSupportHttps=true时有效,用作https上传时的域名校验及http header host字段填充) 填host地址
final
NOS上传默认的link服务器地址,当NOS LBS不可用时先连接该地址 填http/https地址
final
nosUploadLbs String?
NOS上传LBS服务器地址 填http/https地址
final
probeIpv4Url String?
探测ipv4地址类型使用的url, IPVersion.any时生效
final
probeIpv6Url String?
探测ipv6地址类型使用的url, IPVersion.any时生效
final
publicKeyVersion int
连接云信服务器加密数据通道的公钥的版本号(默认0)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited