NEIMServerConfig

class NEIMServerConfig

IM 服务器配置项

Constructors

NEIMServerConfig
Link copied to clipboard
fun NEIMServerConfig()

Types

AsymmetricType
Link copied to clipboard
enum AsymmetricType : Enum<NEIMServerConfig.AsymmetricType>
HandshakeType
Link copied to clipboard
enum HandshakeType : Enum<NEIMServerConfig.HandshakeType>
IPVersion
Link copied to clipboard
enum IPVersion : Enum<NEIMServerConfig.IPVersion>
SymmetryType
Link copied to clipboard
enum SymmetryType : Enum<NEIMServerConfig.SymmetryType>

Properties

bdServer
Link copied to clipboard
@SerializedName(value = bd_server)
var bdServer: String? = null
云信数据统计服务器地址
commEnca
Link copied to clipboard
@SerializedName(value = comm_enca)
var commEnca: NEIMServerConfig.SymmetryType? = null
通信加密算法 {1(RC4), 2(AES128), 4(SM4)} 默认: 1(RC4) 对称加密
dedicatedClusteFlag
Link copied to clipboard
@SerializedName(value = dedicated_cluste_flag)
var dedicatedClusteFlag: Int = 0
是否为专属集群{1(是), 0(否)}
handshakeType
Link copied to clipboard
@SerializedName(value = hand_shake_type)
var handshakeType: NEIMServerConfig.HandshakeType? = null
握手协议选择字段
httpsEnabled
Link copied to clipboard
@SerializedName(value = https_enabled)
var httpsEnabled: Boolean = true
NOS上传是否需要支持https。SDK 3.2版本后默认支持https,同时需要配置 nosUpload!
ipProtocolVersion
Link copied to clipboard
@SerializedName(value = ip_protocol_version)
var ipProtocolVersion: NEIMServerConfig.IPVersion? = null
IP协议版本{0(IPV4), 1(IPV6), 2(Auto, SDK测试后自行选择, 存在性能损耗)}。 默认: 0(IPV4) 非对称加密
lbs
Link copied to clipboard
@SerializedName(value = lbs)
var lbs: String? = null
IM LBS服务器地址,通过它获取IM link 地址信息 填http/https地址
lbsBackup
Link copied to clipboard
var lbsBackup: List<String>? = null
备用IM LBS服务器地址,通过它获取IM link 地址信息 填http/https地址
link
Link copied to clipboard
@SerializedName(value = link)
var link: String? = null
IM 默认的link服务器地址,当IM LBS不可用时先连接该地址 填"IP/Host:PORT"
linkBackup
Link copied to clipboard
var linkBackup: List<String>? = null
IM 默认的link服务器地址不可用时,连接这些地址 填"IP/Host:PORT"
linkIpv6
Link copied to clipboard
@SerializedName(value = link_ipv6)
var linkIpv6: String? = null
ipv6的缺省连接地址
module
Link copied to clipboard
@SerializedName(value = module)
var module: String? = null
连接云信服务器加密数据通道的公钥参数1 rsaModulus
negoKeyEncaKeyParta
Link copied to clipboard
@SerializedName(value = nego_key_enca_key_parta)
var negoKeyEncaKeyParta: String? = null
"交换密钥"协议加密算法密钥 part A 自定义时则必填 BigNumHex string 不含0x RSA: module, SM2: X
negoKeyEncaKeyPartb
Link copied to clipboard
@SerializedName(value = nego_key_enca_key_partb)
var negoKeyEncaKeyPartb: String? = null
"交换密钥"协议加密算法密钥 part B 自定义时则必填 BigNumHex string 不含0x RSA: EXP, SM2: Y
negoKeyEncaKeyVersion
Link copied to clipboard
@SerializedName(value = nego_key_enca_key_version)
var negoKeyEncaKeyVersion: Int = 0
"交换密钥"协议加密算法密钥版本 version 自定义时则必填
negoKeyNeca
Link copied to clipboard
@SerializedName(value = nego_key_neca)
var negoKeyNeca: NEIMServerConfig.AsymmetricType? = null
"交换密钥"协议加密算法 {1(RSA),2(SM2)}, def:1(RSA) 非对称加密
nosAccelerate
Link copied to clipboard
@SerializedName(value = nos_accelerate)
var nosAccelerate: String? = null
NOS下载加速域名/地址,用于替换NOS下载url中的 nosDownload。 提供两种方式:
  1. 4.4.0+开始支持模板方式:填写云信规定的两种模板:{bucket}.nosdn.127.net/{object} 或者 nosdn.127.net/{bucket}/{object},其中 {bucket} 和 {object} 作为标识符,必须填写。域名部分可以替换为您申请的加速域名。

  2. 所有版本支持非模板方式:填写用于加速的 http/https地址,例如:http://111.222.111.22:9090

nosAccelerateHost
Link copied to clipboard
@SerializedName(value = nos_accelerate_host)
var nosAccelerateHost: String? = null
NOS下载地址的host,用于拼接最终获得的文件URL地址,也支持该host替换成下载加速域名/地址 nosAccess.
nosAccelerateHostList
Link copied to clipboard
@SerializedName(value = nos_accelerate_host_list)
var nosAccelerateHostList: List<String>? = null
nosCdnEnable
Link copied to clipboard
@SerializedName(value = nos_cdn_enable)
var nosCdnEnable: Boolean = true
是否优先使用Cdn域名进行NOS下载
nosDownloader
Link copied to clipboard
@SerializedName(value = nos_downloader)
var nosDownloader: String? = null
4.6.
nosLbs
Link copied to clipboard
@SerializedName(value = nos_lbs)
var nosLbs: String? = null
NOS上传LBS服务器地址 填http/https地址
nosUploader
Link copied to clipboard
@SerializedName(value = nos_uploader)
var nosUploader: String? = null
NOS上传默认的link服务器地址,当NOS LBS不可用时先连接该地址 填http/https地址
nosUploaderHost
Link copied to clipboard
@SerializedName(value = nos_uploader_host)
var nosUploaderHost: String? = null
NOS上传服务器主机地址(仅nosSupportHttps=true时有效,用作https上传时的域名校验及http header host字段填充) 填host地址
ntServer
Link copied to clipboard
@SerializedName(value = nt_server)
var ntServer: String? = null
云信运行时异常统计服务器地址
probeIpv4Url
Link copied to clipboard
@SerializedName(value = probe_ipv4_url)
var probeIpv4Url: String? = null
探测ipv4地址类型使用的url, IPProtVersion == 2 时生效
probeIpv6Url
Link copied to clipboard
@SerializedName(value = probe_ipv6_url)
var probeIpv6Url: String? = null
探测ipv6地址类型使用的url, IPProtVersion == 2 时生效
version
Link copied to clipboard
@SerializedName(value = version)
var version: Int = 0
连接云信服务器加密数据通道的公钥的版本号(默认0)