Add node-jose DecryptResult properties (#39148)

Add missing DecryptResult properties found in the `node-jose` implementation
and documented here:

https://github.com/cisco/node-jose/blob/master/lib/jwe/decrypt.js#L42
This commit is contained in:
Juhamatti Niemelä
2019-10-22 15:57:04 -07:00
committed by Wesley Wigham
parent 7456fd99fc
commit cbc8a1ec78
+9
View File
@@ -113,10 +113,19 @@ export namespace JWE {
}
interface DecryptResult {
header: object;
/**
* an array of the member names from the "protected" member
*/
protected: string[];
/**
* Key used to decrypt
*/
key: JWK.Key;
/**
* Buffer of the decrypted content
*/
payload: Buffer;
/**
* the decrypted content (alternate)
*/