JwtTokenBuilder.EncryptWithCertificate method
Encrypts the JWT using the provided X.509 certificate.
public JwtTokenBuilder EncryptWithCertificate(X509Certificate2 cert, string keyAlg = "RSA-OAEP",
string encAlg = "A256GCM")
| parameter | description |
|---|---|
| cert | The X.509 certificate to use for encryption. |
| keyAlg | The key encryption algorithm (default is “RSA-OAEP”). |
| encAlg | The content encryption algorithm (default is “A256GCM”). |
Return Value
The current JwtTokenBuilder instance.
See Also
- class JwtTokenBuilder
- namespace Kestrun.Jwt