src/net/authV2.js
/**
     * Compute a HTTP `Authorization` header value from the configured properties
     * on the builder, using the provided signing key.
     * 
     * @param {CryptoJS#Hash} signingKey the key to sign the computed signature data with
     * @returns {string} the SNWS2 HTTP Authorization header value
     * @private
     */
Compute a HTTP `Authorization` header value from the configured properties
on the builder, using the provided signing key.

@param {CryptoJS#Hash} signingKey the key to sign the computed signature data with
@returns {string} the SNWS2 HTTP Authorization header value
@private
Compute a HTTP ` Authorization ` header value from the configured properties on the builder using the provided signing key . @param { CryptoJS#Hash } signingKey the key to sign the computed signature data with @returns { string } the SNWS2 HTTP Authorization header value @private
buildWithKey(signingKey) {
        const sortedHeaderNames = this.canonicalHeaderNames();
        const canonicalReq = this.computeCanonicalRequestData(sortedHeaderNames);
        const signatureData = this.computeSignatureData(canonicalReq);
        const signature = Hex.stringify(HmacSHA256(signatureData, signingKey));
        let result = 'SNWS2 Credential=' + this.tokenId
            + ',SignedHeaders=' + sortedHeaderNames.join(';')
            + ',Signature=' +signature;
        return result;
    }
buildWithKey ( signingKey ) { const sortedHeaderNames = this . canonicalHeaderNames ( ) ; const canonicalReq = this . computeCanonicalRequestData ( sortedHeaderNames ) ; const signatureData = this . computeSignatureData ( canonicalReq ) ; const signature = Hex . stringify ( HmacSHA256 ( signatureData , signingKey ) ) ; let result = 'SNWS2 Credential=' + this . tokenId + ',SignedHeaders=' + sortedHeaderNames . join ( ';' ) + ',Signature=' + signature ; return result ; }
Compute a HTTP `Authorization` header value from the configured properties
 on the builder, using the provided signing key.
Compute a HTTP ` Authorization ` header value from the configured properties on the builder using the provided signing key .