类 PostSignatureRequest

java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.PostSignatureRequest
直接已知子类:
V4PostSignatureRequest

public class PostSignatureRequest extends Object
Parameters in a request for browser-based authorized access
  • 字段详细资料

    • requestDate

      private Date requestDate
    • expiryDate

      private Date expiryDate
    • bucketName

      private String bucketName
    • objectKey

      private String objectKey
    • expires

      private long expires
    • formParams

      private Map<String,Object> formParams
    • conditions

      private List<String> conditions
  • 构造器详细资料

    • PostSignatureRequest

      public PostSignatureRequest()
    • PostSignatureRequest

      public PostSignatureRequest(long expires, String bucketName, String objectKey)
      Constructor
      参数:
      expires - Expiration time (in seconds)
      bucketName - Bucket name
      objectKey - Object name
    • PostSignatureRequest

      public PostSignatureRequest(Date expiryDate, String bucketName, String objectKey)
      Constructor
      参数:
      expiryDate - Expiration date
      bucketName - Bucket name
      objectKey - Object name
    • PostSignatureRequest

      public PostSignatureRequest(long expires, Date requestDate, String bucketName, String objectKey)
      参数:
      expires - Expiration time (in seconds)
      requestDate - Request time
      bucketName - Bucket name
      objectKey - Object name
    • PostSignatureRequest

      public PostSignatureRequest(Date expiryDate, Date requestDate, String bucketName, String objectKey)
      参数:
      expiryDate - Expiration date
      requestDate - Request time
      bucketName - Bucket name
      objectKey - Object name
  • 方法详细资料

    • getRequestDate

      public Date getRequestDate()
      Set the request time.
      返回:
      Request time
    • setRequestDate

      public void setRequestDate(Date requestDate)
      Set the request time.
      参数:
      requestDate - Request time
    • getExpiryDate

      public Date getExpiryDate()
      Set the expiration date.
      返回:
      Expiration date
    • setExpiryDate

      public void setExpiryDate(Date expiryDate)
      Obtain the expiration date.
      参数:
      expiryDate - Expiration date
    • getExpires

      public long getExpires()
      Obtain the validity period. The default value is 5 minutes (value "300").
      返回:
      Validity period
    • setExpires

      public void setExpires(long expires)
      Set the validity period (in seconds).
      参数:
      expires - Validity period
    • getFormParams

      public Map<String,Object> getFormParams()
      Obtain the form parameters of the request.
      返回:
      Form parameters of the request
    • setFormParams

      public void setFormParams(Map<String,Object> formParams)
      Set the form parameters of the request.
      参数:
      formParams - Form parameters of the request
    • getBucketName

      public String getBucketName()
      Obtain the bucket name.
      返回:
      Bucket name
    • setBucketName

      public void setBucketName(String bucketName)
      Set the bucket name.
      参数:
      bucketName - Bucket name
    • getObjectKey

      public String getObjectKey()
      Obtain the object name.
      返回:
      Object name
    • setObjectKey

      public void setObjectKey(String objectKey)
      Set the object name.
      参数:
      objectKey - Object name
    • getConditions

      public List<String> getConditions()
      Obtain the restrictions of the form. If the value is set, it will be used to calculate "policy", while the form parameter configuration of the request will be ignored.
      返回:
      Restrictions of the form
    • setConditions

      public void setConditions(List<String> conditions)
      Set the restrictions of the form. If the value is set, it will be used to calculate "policy", while the form parameter configuration of the request will be ignored.
      参数:
      conditions - Restrictions of the form
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object