Method: Sandal::Enc::Alg::Direct#encrypt_key

Defined in:
lib/sandal/enc/alg/direct.rb

#encrypt_key(key) ⇒ String

Returns an empty string as the key is not included in JWE tokens using direct key exchange.

Parameters:

  • key (String)

    This parameter is ignored.

Returns:

  • (String)

    An empty string.

[View source]

32
33
34
# File 'lib/sandal/enc/alg/direct.rb', line 32

def encrypt_key(key)
  ""
end