JwtTokenBuilder.EncryptWithSecret method

Encrypts the JWT using a symmetric key provided as a byte array.

public JwtTokenBuilder EncryptWithSecret(byte[] keyBytes, string keyAlg = "dir", 
    string encAlg = "A256CBC-HS512")
parameter description
keyBytes The symmetric key as a byte array.
keyAlg The key encryption algorithm (default is “dir”).
encAlg The content encryption algorithm (default is “A256CBC-HS512”).

Return Value

The current JwtTokenBuilder instance.

See Also