com.aliyun.oss.common.auth

## 类 HmacSHA256Signature

- java.lang.Object
- - com.aliyun.oss.common.auth.ServiceSignature
  - - com.aliyun.oss.common.auth.HmacSHA256Signature

-     public class HmacSHA256Signature
      extends ServiceSignature

  Used for computing Hmac-SHA256 signature.

- - ### 构造器概要

    构造器
    构造器和说明
    `HmacSHA256Signature()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `computeSignature(String key, String data)` Computes the signature of the data by the given key.
    `String` | `getAlgorithm()` Gets the algorithm of signature.
    `String` | `getVersion()` Gets the algorithm version.

    - ### 从类继承的方法 com.aliyun.oss.common.auth.ServiceSignature

      `create, sign`

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

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

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

    - #### HmacSHA256Signature

          public HmacSHA256Signature()

  - ### 方法详细资料

    - #### getAlgorithm

          public String getAlgorithm()

      从类复制的说明: `ServiceSignature`
      Gets the algorithm of signature.
      指定者:
        `getAlgorithm` 在类中 `ServiceSignature`
      返回:
        The algorithm of the signature.

    - #### getVersion

          public String getVersion()

      从类复制的说明: `ServiceSignature`
      Gets the algorithm version.
      指定者:
        `getVersion` 在类中 `ServiceSignature`
      返回:
        The algorithm version.

    - #### computeSignature

          public String computeSignature(String key,
                                String data)

      从类复制的说明: `ServiceSignature`
      Computes the signature of the data by the given key.
      指定者:
        `computeSignature` 在类中 `ServiceSignature`
      参数:
        `key` - The key for the signature.
        `data` - The data to compute the signature on.
      返回:
        The signature in string.

Copyright © 2020. All Rights Reserved.