Skip to content

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?

optional checkAlgClaim: boolean

Defined in: src/lib/Algorithms/Rsa.ts:256

Whether to check the alg claim in the JWT header if it is present.

Default

ts
true

customName?

optional customName: string

Defined in: src/lib/Algorithms/Rsa.ts:244

A custom name for this validator.

Default

ts
'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?

optional usePssPadding: 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

ts
null