public class ByteplusSign extends Object implements Authentication
| Constructor and Description |
|---|
ByteplusSign() |
ByteplusSign(Credentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyToParams(List<Pair> queryParams,
Map<String,String> headerParams,
String payload)
Apply authentication settings to header and query params.
|
ByteplusSign |
copy() |
Credentials |
getCredentials() |
String |
getMethod() |
String |
getRegion() |
String |
getService() |
Map<String,String> |
presign(Map<String,String> queryParams)
Generate presigned URL query parameters (without host signing)
|
Map<String,String> |
presign(Map<String,String> queryParams,
String host)
Generate presigned URL query parameters
|
void |
setCredentials(Credentials credentials) |
void |
setMethod(String method) |
void |
setRegion(String region) |
void |
setService(String service) |
public ByteplusSign()
public ByteplusSign(Credentials credentials)
public void applyToParams(List<Pair> queryParams, Map<String,String> headerParams, String payload)
AuthenticationapplyToParams in interface AuthenticationqueryParams - List of query parametersheaderParams - Map of header parameterspublic Credentials getCredentials()
public void setCredentials(Credentials credentials)
public String getRegion()
public void setRegion(String region)
public String getService()
public void setService(String service)
public String getMethod()
public void setMethod(String method)
public ByteplusSign copy()
public Map<String,String> presign(Map<String,String> queryParams) throws Exception
queryParams - Original query parametersExceptionpublic Map<String,String> presign(Map<String,String> queryParams, String host) throws Exception
queryParams - Original query parametershost - Host header value to include in signing (e.g., "rds-mysql.cn-beijing.byteplusapi.com").
If null or empty, no host header is signed.ExceptionCopyright © 2026. All rights reserved.