类 TemporarySignatureRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractTemporarySignatureRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.TemporarySignatureRequest
- 直接已知子类:
V4TemporarySignatureRequest
Parameters in a request for temporarily authorized access
-
字段概要
字段从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractTemporarySignatureRequest
bucketName, headers, method, objectKey, queryParams, specialParam -
构造器概要
构造器构造器说明TemporarySignatureRequest(HttpMethodEnum method, long expires) ConstructorTemporarySignatureRequest(HttpMethodEnum method, String bucketName, String objectKey, SpecialParamEnum specialParam, long expires) ConstructorTemporarySignatureRequest(HttpMethodEnum method, String bucketName, String objectKey, SpecialParamEnum specialParam, long expires, Date requestDate) Constructor -
方法概要
修饰符和类型方法说明longObtain the validity period of the temporary authorization (in seconds).Set the request time.voidsetExpires(long expires) Obtain the validity period of the temporary authorization (in seconds).voidsetRequestDate(Date requestDate) Set the request time.toString()从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractTemporarySignatureRequest
getBucketName, getHeaders, getMethod, getObjectKey, getQueryParams, getSpecialParam, setBucketName, setHeaders, setMethod, setObjectKey, setQueryParams, setSpecialParam
-
字段详细资料
-
expires
private long expires -
requestDate
-
-
构造器详细资料
-
TemporarySignatureRequest
public TemporarySignatureRequest() -
TemporarySignatureRequest
Constructor- 参数:
method- HTTP/HTTPS request methodexpires- Expiration time (in seconds)
-
TemporarySignatureRequest
public TemporarySignatureRequest(HttpMethodEnum method, String bucketName, String objectKey, SpecialParamEnum specialParam, long expires) Constructor- 参数:
method- HTTP/HTTPS request methodbucketName- Bucket nameobjectKey- Object namespecialParam- Special operatorexpires- Expiration time (in seconds)
-
TemporarySignatureRequest
public TemporarySignatureRequest(HttpMethodEnum method, String bucketName, String objectKey, SpecialParamEnum specialParam, long expires, Date requestDate) Constructor- 参数:
method- HTTP/HTTPS request methodbucketName- Bucket nameobjectKey- Object namespecialParam- Special operatorexpires- Expiration time (in seconds)requestDate- Request date
-
-
方法详细资料
-
getExpires
public long getExpires()Obtain the validity period of the temporary authorization (in seconds). The devalue value is 5 minutes (value "300") and the maximum value is 7 days ("604800").- 返回:
- Validity period
-
setExpires
public void setExpires(long expires) Obtain the validity period of the temporary authorization (in seconds). The devalue value is 5 minutes (value "300") and the maximum value is 7 days ("604800").- 参数:
expires- Validity period
-
getRequestDate
Set the request time.- 返回:
- Request time
-
setRequestDate
Set the request time.- 参数:
requestDate- Request date
-
toString
-