NIMSDK-AOS  9.16.3
FcsDownloadAuthStrategy.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk;
2 
3 import android.util.Pair;
4 import com.netease.nim.highavailable.enums.HAvailableDownloadAuthType;
5 
9 public interface FcsDownloadAuthStrategy {
10 
15  HAvailableDownloadAuthType getDownloadAuthType();
20  Pair<String,String> getAuthRefer();
21 
22 
27  String getCustomAuthToken(String url);
28 
29 }
HAvailableDownloadAuthType getDownloadAuthType()
获取下载鉴权方式
String getCustomAuthToken(String url)
用户自定义鉴权,根据url提供自定义token
Pair< String, String > getAuthRefer()
refer会校验自定义的Refer和User_Agent,Pair中first为Refer,Second为User_Agent,与企业用户在后台配置的R...