Class Constants
java.lang.Object
cn.com.xuxiaowei.bilibili.constant.Constants
- Since:
- 0.0.1
- Author:
- xuxiaowei
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
x-bili-signature-version为2.0时必填,为通过OAuth2授权获取到的access_tokenstatic String
static String
static String
static String
static String
static String
static String
B站侧给出的Access Key(申请应用时获得的client_id)static String
请求体的编码值,根据请求体计算所得(全小写字母)。static String
签名方式。static String
全网签名唯一随机数。static String
请使用2.0static String
unix时间戳,单位是秒。 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
STATE
-
TICKET
-
REQUEST_ID
- See Also:
- Constant Field Values
-
REMOTE_HOST
- See Also:
- Constant Field Values
-
REMOTE_ADDR
- See Also:
- Constant Field Values
-
IP
- See Also:
- Constant Field Values
-
X_BILI_ACCESSKEYID
B站侧给出的Access Key(申请应用时获得的client_id)- See Also:
- Constant Field Values
-
X_BILI_CONTENT_MD5
请求体的编码值,根据请求体计算所得(全小写字母)。算法说明:将请求体内容(除文件外)当作字符串进行MD5编码。- See Also:
- Constant Field Values
-
X_BILI_SIGNATURE_METHOD
签名方式。取值:HMAC-SHA256- See Also:
- Constant Field Values
-
X_BILI_SIGNATURE_NONCE
全网签名唯一随机数。用于防止网络重放攻击,建议您每一次请求都使用不同的随机数,例如GUID。- See Also:
- Constant Field Values
-
X_BILI_SIGNATURE_VERSION
请使用2.0- See Also:
- Constant Field Values
-
X_BILI_TIMESTAMP
unix时间戳,单位是秒。请求时间戳不能超过当前时间10分钟,否则请求会被丢弃。- See Also:
- Constant Field Values
-
ACCESS_TOKEN
x-bili-signature-version为2.0时必填,为通过OAuth2授权获取到的access_token- See Also:
- Constant Field Values
-
-
Constructor Details
-
Constants
public Constants()
-