public class ClientProfile extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SIGN_SHA1
HmacSHA1签名方法
|
static String |
SIGN_SHA256
HmacSHA256签名方法
|
static String |
SIGN_TC3_256
Signature Version 3
|
Constructor and Description |
---|
ClientProfile() |
ClientProfile(String signMethod) |
ClientProfile(String signMethod,
HttpProfile httpProfile) |
Modifier and Type | Method and Description |
---|---|
HttpProfile |
getHttpProfile()
获取HttpProfile实例
|
String |
getSignMethod()
获取签名方法
|
boolean |
isUnsignedPayload()
Get the flag of whether payload is ignored.
|
void |
setHttpProfile(HttpProfile httpProfile)
设置http选项
|
void |
setSignMethod(String signMethod)
设置签名方法
|
void |
setUnsignedPayload(boolean flag)
Set the flag of whether payload should be ignored.
|
public static final String SIGN_SHA1
public static final String SIGN_SHA256
public static final String SIGN_TC3_256
public ClientProfile(String signMethod, HttpProfile httpProfile)
signMethod
- 签名方法httpProfile
- HttpProfile实例public ClientProfile(String signMethod)
public ClientProfile()
public void setSignMethod(String signMethod)
signMethod
- public void setHttpProfile(HttpProfile httpProfile)
httpProfile
- 参考HttpProfilepublic String getSignMethod()
public HttpProfile getHttpProfile()
public void setUnsignedPayload(boolean flag)
flag
- public boolean isUnsignedPayload()
Copyright © 2019. All rights reserved.