程序包 | 说明 |
---|---|
com.easemob.im.server.api.token |
限定符和类型 | 方法和说明 |
---|---|
String |
TokenApi.getUserToken(EMUser user,
Integer expireInSeconds,
Consumer<AccessToken2> tokenConfigurer,
String password)
获取 User Token,expireInSeconds 仅对生成 Agora userToken 生效
可获取 Easemob userToken 或 Agora userToken.
|
String |
TokenApi.getUserTokenWithTtl(EMUser user,
Integer expireInSeconds,
Consumer<AccessToken2> tokenConfigurer,
String password)
获取 User Token,expireInSeconds 对生成 Easemob userToken 和 Agora userToken 都会生效
可获取 Easemob userToken 或 Agora userToken.
|
Copyright © 2024. All rights reserved.