Skip to content

Commit 2f44381

Browse files
committed
docs: update compact setKeyManagementParameters
1 parent 746ca64 commit 2f44381

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

docs/jwe/compact/encrypt/classes/CompactEncrypt.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ You should not use this method. It is only really intended for test and vector
112112

113113
**setKeyManagementParameters**(`parameters`): `this`
114114

115-
Sets the JWE Key Management parameters to be used when encrypting the Content Encryption Key.
116-
You do not need to invoke this method, it is only really intended for test and vector
117-
validation purposes.
115+
Sets the JWE Key Management parameters to be used when encrypting. Use of this is method is
116+
really only needed for ECDH based algorithms when utilizing the Agreement PartyUInfo or
117+
Agreement PartyVInfo parameters. Other parameters will always be randomly generated when needed
118+
and missing.
118119

119120
#### Parameters
120121

src/jwe/compact/encrypt.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ export class CompactEncrypt {
7676
}
7777

7878
/**
79-
* Sets the JWE Key Management parameters to be used when encrypting the Content Encryption Key.
80-
* You do not need to invoke this method, it is only really intended for test and vector
81-
* validation purposes.
79+
* Sets the JWE Key Management parameters to be used when encrypting. Use of this is method is
80+
* really only needed for ECDH based algorithms when utilizing the Agreement PartyUInfo or
81+
* Agreement PartyVInfo parameters. Other parameters will always be randomly generated when needed
82+
* and missing.
8283
*
8384
* @param parameters JWE Key Management parameters.
8485
*/

0 commit comments

Comments
 (0)