com.obs.services.model

## 类 TemporarySignatureRequest

- java.lang.Object
- - com.obs.services.model.AbstractTemporarySignatureRequest
  - - com.obs.services.model.TemporarySignatureRequest

- 直接已知子类:
    V4TemporarySignatureRequest

      public class TemporarySignatureRequest
      extends AbstractTemporarySignatureRequest

  Parameters in a request for temporarily authorized access

- - ### 字段概要

    - ### 从类继承的字段 com.obs.services.model.AbstractTemporarySignatureRequest

      `bucketName, headers, method, objectKey, queryParams, specialParam`

  - ### 构造器概要

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

  - ### 方法概要

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

    - ### 从类继承的方法 com.obs.services.model.AbstractTemporarySignatureRequest

      `getBucketName, getHeaders, getMethod, getObjectKey, getQueryParams, getSpecialParam, setBucketName, setHeaders, setMethod, setObjectKey, setQueryParams, setSpecialParam`

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

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

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

    - #### TemporarySignatureRequest

          public TemporarySignatureRequest()

    - #### TemporarySignatureRequest

          public TemporarySignatureRequest(HttpMethodEnum method,
                                           long expires)

      Constructor
      参数:
        `method` - HTTP/HTTPS request method
        `expires` - Expiration time (in seconds)

    - #### TemporarySignatureRequest

          public TemporarySignatureRequest(HttpMethodEnum method,
                                           String bucketName,
                                           String objectKey,
                                           SpecialParamEnum specialParam,
                                           long expires)

      Constructor
      参数:
        `method` - HTTP/HTTPS request method
        `bucketName` - Bucket name
        `objectKey` - Object name
        `specialParam` - Special operator
        `expires` - Expiration time (in seconds)

    - #### TemporarySignatureRequest

          public TemporarySignatureRequest(HttpMethodEnum method,
                                           String bucketName,
                                           String objectKey,
                                           SpecialParamEnum specialParam,
                                           long expires,
                                           Date requestDate)

      Constructor
      参数:
        `method` - HTTP/HTTPS request method
        `bucketName` - Bucket name
        `objectKey` - Object name
        `specialParam` - Special operator
        `expires` - 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

          public Date getRequestDate()

      Set the request time.
      返回:
        Request time

    - #### setRequestDate

          public void setRequestDate(Date requestDate)

      Set the request time.
      参数:
        `requestDate` - Request date

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`

Copyright © 2021. All rights reserved.