类 PolicyTempSignatureRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractTemporarySignatureRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.PolicyTempSignatureRequest
Request parameters of policy-based temporary access authorization
-
字段概要
字段从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractTemporarySignatureRequest
bucketName, headers, method, objectKey, queryParams, specialParam -
构造器概要
构造器构造器说明PolicyTempSignatureRequest(HttpMethodEnum method, String bucketName, String objectKey) ConstructorPolicyTempSignatureRequest(HttpMethodEnum method, String bucketName, String objectKey, long expires) ConstructorPolicyTempSignatureRequest(HttpMethodEnum method, String bucketName, String objectKey, Date expiryDate) Constructor -
方法概要
修饰符和类型方法说明Generate a policy based on the validity period and policy condition.Obtain the condition set of the policy.longObtain the validity period.Set the expiration date.voidsetConditions(List<PolicyConditionItem> conditions) Set the condition set of the policy.voidsetExpires(long expires) Set the validity period (seconds).voidsetExpiryDate(Date expiryDate) Obtain the expiration date.从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractTemporarySignatureRequest
getBucketName, getHeaders, getMethod, getObjectKey, getQueryParams, getSpecialParam, setBucketName, setHeaders, setMethod, setObjectKey, setQueryParams, setSpecialParam
-
字段详细资料
-
expiryDate
-
expires
private long expires -
conditions
-
-
构造器详细资料
-
PolicyTempSignatureRequest
public PolicyTempSignatureRequest() -
PolicyTempSignatureRequest
Constructor- 参数:
method- HTTP/HTTPS request methodbucketName- Bucket nameobjectKey- Object name
-
PolicyTempSignatureRequest
public PolicyTempSignatureRequest(HttpMethodEnum method, String bucketName, String objectKey, Date expiryDate) Constructor- 参数:
method- HTTP/HTTPS request methodbucketName- Bucket nameobjectKey- Object nameexpiryDate- Expiration data
-
PolicyTempSignatureRequest
public PolicyTempSignatureRequest(HttpMethodEnum method, String bucketName, String objectKey, long expires) Constructor- 参数:
method- HTTP/HTTPS request methodbucketName- Bucket nameobjectKey- Object nameexpires- Validity period
-
-
方法详细资料
-
generatePolicy
Generate a policy based on the validity period and policy condition.- 返回:
-
getExpiryDate
Set the expiration date.- 返回:
- Expiration date
-
setExpiryDate
Obtain the expiration date.- 参数:
expiryDate- Expiration date
-
getExpires
public long getExpires()Obtain the validity period. The default value is 5 minutes (300 seconds).- 返回:
- Validity period
-
setExpires
public void setExpires(long expires) Set the validity period (seconds).- 参数:
expires- Validity period
-
getConditions
Obtain the condition set of the policy.- 返回:
- Policy condition set
-
setConditions
Set the condition set of the policy.- 参数:
conditions- Policy condition set
-