public class TemporarySignatureRequest extends AbstractTemporarySignatureRequest
bucketName, headers, method, objectKey, queryParams, specialParam
Constructor and Description |
---|
TemporarySignatureRequest() |
TemporarySignatureRequest(HttpMethodEnum method,
long expires)
Constructor
|
TemporarySignatureRequest(HttpMethodEnum method,
String bucketName,
String objectKey,
SpecialParamEnum specialParam,
long expires)
Constructor
|
TemporarySignatureRequest(HttpMethodEnum method,
String bucketName,
String objectKey,
SpecialParamEnum specialParam,
long expires,
Date requestDate)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getExpires()
Obtain the validity period of the temporary authorization (in seconds).
|
Date |
getRequestDate()
Set the request time.
|
void |
setExpires(long expires)
Obtain the validity period of the temporary authorization (in seconds).
|
void |
setRequestDate(Date requestDate)
Set the request time.
|
String |
toString() |
getBucketName, getHeaders, getMethod, getObjectKey, getQueryParams, getSpecialParam, setBucketName, setHeaders, setMethod, setObjectKey, setQueryParams, setSpecialParam
public TemporarySignatureRequest()
public TemporarySignatureRequest(HttpMethodEnum method, long expires)
method
- HTTP/HTTPS request methodexpires
- Expiration time (in seconds)public TemporarySignatureRequest(HttpMethodEnum method, String bucketName, String objectKey, SpecialParamEnum specialParam, long expires)
method
- HTTP/HTTPS request methodbucketName
- Bucket nameobjectKey
- Object namespecialParam
- Special operatorexpires
- Expiration time (in seconds)public TemporarySignatureRequest(HttpMethodEnum method, String bucketName, String objectKey, SpecialParamEnum specialParam, long expires, Date requestDate)
method
- HTTP/HTTPS request methodbucketName
- Bucket nameobjectKey
- Object namespecialParam
- Special operatorexpires
- Expiration time (in seconds)requestDate
- Request datepublic long getExpires()
public void setExpires(long expires)
expires
- Validity periodpublic Date getRequestDate()
public void setRequestDate(Date requestDate)
requestDate
- Request dateCopyright © 2019. All rights reserved.