JwtTokenBuilder.EncryptWithPemPublic method
Encrypts the JWT using a PEM-encoded RSA public key.
public JwtTokenBuilder EncryptWithPemPublic(string pemPath, string keyAlg = "RSA-OAEP",
string encAlg = "A256GCM")
| parameter | description |
|---|---|
| pemPath | The file path to the PEM-encoded RSA public key. |
| 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