public abstract class OSSCustomSignerCredentialProvider extends java.lang.Object implements OSSCredentialProvider
构造器和说明 |
---|
OSSCustomSignerCredentialProvider() |
限定符和类型 | 方法和说明 |
---|---|
OSSFederationToken |
getFederationToken()
get OSSFederationToken instance
|
abstract java.lang.String |
signContent(java.lang.String content)
Custom content sign method.
|
public abstract java.lang.String signContent(java.lang.String content)
The sign algorithm:http://help.aliyun.com/document_detail/oss/api-reference/access-control/signature-header.html signature = "OSS " + AccessKeyId + ":" + base64(hmac-sha1(AccessKeySecret, content))
content is the final text to sign which comes from the URL parameters, headers and the actual content payload.
content
- The final text to sign, which is concated from url parameters, url headers and body.public OSSFederationToken getFederationToken()
OSSCredentialProvider
getFederationToken
在接口中 OSSCredentialProvider