Documents for @litert/jwt / Algorithms/Rsa / IRsaValidatorOptions
Interface: IRsaValidatorOptions
Defined in: src/lib/Algorithms/Rsa.ts:237
The options for creating an RSA signature validator for JWT.
Properties
checkAlgClaim?
optionalcheckAlgClaim:boolean
Defined in: src/lib/Algorithms/Rsa.ts:256
Whether to check the alg claim in the JWT header if it is present.
Default
truecustomName?
optionalcustomName:string
Defined in: src/lib/Algorithms/Rsa.ts:244
A custom name for this validator.
Default
'RsaJwaVerifier'digestType
digestType:
EDigestType
Defined in: src/lib/Algorithms/Rsa.ts:261
The digest type to use for RSA signature verification.
publicKey
publicKey:
string|KeyObject
Defined in: src/lib/Algorithms/Rsa.ts:249
The public key to use for RSA signature verification.
usePssPadding?
optionalusePssPadding:boolean|null
Defined in: src/lib/Algorithms/Rsa.ts:273
Whether to use RSA-PSS padding for verification.
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