com.obs.services.model

## 类 PostSignatureRequest

- java.lang.Object
- - com.obs.services.model.PostSignatureRequest

- 直接已知子类:
    V4PostSignatureRequest

      public class PostSignatureRequest
      extends Object

  Parameters in a request for browser-based authorized access

- - ### 构造器概要

    构造器
    构造器和说明
    `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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `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()`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### 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`

Copyright © 2021. All rights reserved.