public class PostSignatureRequest extends Object
Constructor and Description |
---|
PostSignatureRequest() |
PostSignatureRequest(Date expiryDate,
Date requestDate,
String bucketName,
String objectKey) |
PostSignatureRequest(Date expiryDate,
String bucketName,
String objectKey)
Constructor
|
PostSignatureRequest(long expires,
Date requestDate,
String bucketName,
String objectKey) |
PostSignatureRequest(long expires,
String bucketName,
String objectKey)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Obtain the bucket name.
|
List<String> |
getConditions()
Obtain the restrictions of the form.
|
long |
getExpires()
Obtain the validity period.
|
Date |
getExpiryDate()
Set the expiration date.
|
Map<String,Object> |
getFormParams()
Obtain the form parameters of the request.
|
String |
getObjectKey()
Obtain the object name.
|
Date |
getRequestDate()
Set the request time.
|
void |
setBucketName(String bucketName)
Set the bucket name.
|
void |
setConditions(List<String> conditions)
Set the restrictions of the form.
|
void |
setExpires(long expires)
Set the validity period (in seconds).
|
void |
setExpiryDate(Date expiryDate)
Obtain the expiration date.
|
void |
setFormParams(Map<String,Object> formParams)
Set the form parameters of the request.
|
void |
setObjectKey(String objectKey)
Set the object name.
|
void |
setRequestDate(Date requestDate)
Set the request time.
|
String |
toString() |
public PostSignatureRequest()
public PostSignatureRequest(long expires, String bucketName, String objectKey)
expires
- Expiration time (in seconds)bucketName
- Bucket nameobjectKey
- Object namepublic PostSignatureRequest(Date expiryDate, String bucketName, String objectKey)
expiryDate
- Expiration datebucketName
- Bucket nameobjectKey
- Object namepublic PostSignatureRequest(long expires, Date requestDate, String bucketName, String objectKey)
expires
- Expiration time (in seconds)requestDate
- Request timebucketName
- Bucket nameobjectKey
- Object namepublic Date getRequestDate()
public void setRequestDate(Date requestDate)
requestDate
- Request timepublic Date getExpiryDate()
public void setExpiryDate(Date expiryDate)
expiryDate
- Expiration datepublic long getExpires()
public void setExpires(long expires)
expires
- Validity periodpublic Map<String,Object> getFormParams()
public void setFormParams(Map<String,Object> formParams)
formParams
- Form parameters of the requestpublic String getBucketName()
public void setBucketName(String bucketName)
bucketName
- Bucket namepublic String getObjectKey()
public void setObjectKey(String objectKey)
objectKey
- Object namepublic List<String> getConditions()
public void setConditions(List<String> conditions)
conditions
- Restrictions of the formCopyright © 2019. All rights reserved.