public class AccessToken2 extends Object
It serves as an authentication protocol among multiple Agora and Easemob Services
Do not change this class as it might break the authentication process
限定符和类型 | 类和说明 |
---|---|
static class |
AccessToken2.PrivilegeChat |
static class |
AccessToken2.PrivilegeRtc |
static class |
AccessToken2.PrivilegeRtm |
static class |
AccessToken2.PrivilegeStreaming |
static class |
AccessToken2.Service |
static class |
AccessToken2.ServiceChat |
static class |
AccessToken2.ServiceRtc |
static class |
AccessToken2.ServiceRtm |
static class |
AccessToken2.ServiceStreaming |
限定符和类型 | 字段和说明 |
---|---|
String |
appCert |
String |
appId |
int |
expire |
int |
issueTs |
int |
salt |
static short |
SERVICE_TYPE_CHAT |
static short |
SERVICE_TYPE_RTC |
static short |
SERVICE_TYPE_RTM |
static short |
SERVICE_TYPE_STREAMING |
Map<Short,AccessToken2.Service> |
services |
构造器和说明 |
---|
AccessToken2() |
AccessToken2(String appId,
String appCert,
int expire) |
限定符和类型 | 方法和说明 |
---|---|
void |
addService(AccessToken2.Service service) |
String |
build() |
AccessToken2.Service |
getService(short serviceType) |
byte[] |
getSign() |
static String |
getUidStr(int uid) |
static String |
getVersion() |
boolean |
parse(String token) |
public static final short SERVICE_TYPE_RTC
public static final short SERVICE_TYPE_RTM
public static final short SERVICE_TYPE_STREAMING
public static final short SERVICE_TYPE_CHAT
public String appCert
public String appId
public int expire
public int issueTs
public int salt
public Map<Short,AccessToken2.Service> services
public static String getUidStr(int uid)
public static String getVersion()
public void addService(AccessToken2.Service service)
public AccessToken2.Service getService(short serviceType)
public boolean parse(String token)
Copyright © 2024. All rights reserved.