Class ClientProfile
- java.lang.Object
-
- com.tencentcloudapi.common.profile.ClientProfile
-
public class ClientProfile extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringSIGN_SHA1Signature process version 1, with HmacSHA1.static StringSIGN_SHA256Signature process version 1, with HmacSHA256.static StringSIGN_TC3_256Signature process version 3.
-
Constructor Summary
Constructors Constructor Description ClientProfile()ClientProfile(String signMethod)ClientProfile(String signMethod, HttpProfile httpProfile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBackupEndpoint()HttpProfilegetHttpProfile()LanguagegetLanguage()StringgetSignMethod()booleanisDebug()booleanisUnsignedPayload()Get the flag of whether payload is ignored.voidsetBackupEndpoint(String backupEndpoint)voidsetDebug(boolean debug)voidsetHttpProfile(HttpProfile httpProfile)voidsetLanguage(Language lang)voidsetSignMethod(String signMethod)voidsetUnsignedPayload(boolean flag)Set the flag of whether payload should be ignored.
-
-
-
Field Detail
-
SIGN_SHA1
public static final String SIGN_SHA1
Signature process version 1, with HmacSHA1.- See Also:
- Constant Field Values
-
SIGN_SHA256
public static final String SIGN_SHA256
Signature process version 1, with HmacSHA256.- See Also:
- Constant Field Values
-
SIGN_TC3_256
public static final String SIGN_TC3_256
Signature process version 3.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClientProfile
public ClientProfile(String signMethod, HttpProfile httpProfile)
-
ClientProfile
public ClientProfile(String signMethod)
-
ClientProfile
public ClientProfile()
-
-
Method Detail
-
getSignMethod
public String getSignMethod()
-
setSignMethod
public void setSignMethod(String signMethod)
-
getHttpProfile
public HttpProfile getHttpProfile()
-
setHttpProfile
public void setHttpProfile(HttpProfile httpProfile)
-
isUnsignedPayload
public boolean isUnsignedPayload()
Get the flag of whether payload is ignored.
-
setUnsignedPayload
public void setUnsignedPayload(boolean flag)
Set the flag of whether payload should be ignored. Only has effect when request method is POST.- Parameters:
flag-
-
getLanguage
public Language getLanguage()
-
setLanguage
public void setLanguage(Language lang)
-
isDebug
public boolean isDebug()
-
setDebug
public void setDebug(boolean debug)
-
getBackupEndpoint
public String getBackupEndpoint()
-
setBackupEndpoint
public void setBackupEndpoint(String backupEndpoint)
-
-