Namespace: security

qz.security

Calls related to signing connection requests.
Source:

Methods

(static) getSignatureAlgorithm() → {string}

Get the signing algorithm QZ will be checking signatures against.
Since:
  • 2.1.0
Source:
Returns:
The algorithm used in signing.
Type
string

(static) setCertificatePromise(promiseCall)

Set promise resolver for calls to acquire the site's certificate.
Parameters:
Name Type Description
promiseCall function Function({function} resolve) called as promise for getting the public certificate. Should call resolve parameter with the result.
Source:

(static) setSignatureAlgorithm(algorithm)

Set which signing algorithm QZ will check signatures against.
Parameters:
Name Type Description
algorithm string The algorithm used in signing. Valid values: [SHA1 | SHA256 | SHA512]
Since:
  • 2.1.0
Source:

(static) setSignaturePromise(promiseGen)

Set promise creator for calls to sign API calls.
Parameters:
Name Type Description
promiseGen function Function({function} toSign) Should return a function, Function({function} resolve), that will sign the content and resolve the created promise.
Source: