JwtTokenBuilder.EncryptWithJwkJson method

Encrypts the JWT payload using a JWK (public key) in JSON format.

public JwtTokenBuilder EncryptWithJwkJson(string jwkJson, string keyAlg = "RSA-OAEP", 
    string encAlg = "A256GCM")
parameter description
jwkJson The JWK JSON string (typically an RSA or EC public key).
keyAlg The JWE key management algorithm (default: “RSA-OAEP”).
encAlg The JWE content encryption algorithm (default: “A256GCM”).

Return Value

The current JwtTokenBuilder instance.

See Also