# Class: Certificate

## Certificate(headers, requestBody, privateKeyContent)

认证

## Constructor

#### new Certificate(headers, requestBody, privateKeyContent)

##### Parameters:

Name | Type | Description
--- | --- | ---
`headers` | Object | http请求的header
`requestBody` | string | 请求体
`privateKeyContent` | string | 私钥. 用于请求DuerOS参数签名

Source:
  - Certificate.js, line 27

### Methods

#### disableVerifyRequestSign() → {boolean}

关闭验证请求参数签名

Source:
  - Certificate.js, line 56

##### Returns:

Type
  boolean

#### enableVerifyRequestSign() → {boolean}

开启验证请求参数签名，阻止非法请求

Source:
  - Certificate.js, line 46

##### Returns:

Type
  boolean

#### getRequestSig()

Source:
  - Certificate.js, line 152

##### Returns:

string

#### verifyRequest()

验证请求者是否合法

Source:
  - Certificate.js, line 118

##### Returns:

promise