Documents for @litert/jwt / Algorithms/Rsa / IRsaSignerOptions
Interface: IRsaSignerOptions
Defined in: src/lib/Algorithms/Rsa.ts:26
The options for creating an RSA JWT signer.
Properties
digestType
digestType:
EDigestType
Defined in: src/lib/Algorithms/Rsa.ts:47
The digest type to use for signing.
keyId?
optionalkeyId:string|null
Defined in: src/lib/Algorithms/Rsa.ts:42
The key ID to use in the JWT header.
When using
stringifyAPI, it will not automatically set thekidclaim in the JWT header even if this value is provided here. You need to set it manually in theheaderoption of thestringifyAPI.
Optional
privateKey
privateKey:
string|KeyObject
Defined in: src/lib/Algorithms/Rsa.ts:31
The private key to use for signing.
usePssPadding?
optionalusePssPadding:boolean|null
Defined in: src/lib/Algorithms/Rsa.ts:59
Whether to use RSA-PSS padding for signing.
Set to null to use the default padding scheme based on the key type.
If a RSA-PSS key is provided, but this option is set to false, an error will be thrown.
Default
null