module JWT::JWA::Compat::ClassMethods
@api private
Public Instance Methods
Source
# File lib/jwt/jwa/compat.rb, line 10 def from_algorithm(algorithm) new(algorithm) end
Source
# File lib/jwt/jwa/compat.rb, line 14 def sign(algorithm, msg, key) Deprecations.warning('Support for calling sign with positional arguments will be removed in future ruby-jwt versions') from_algorithm(algorithm).sign(data: msg, signing_key: key) end
Source
# File lib/jwt/jwa/compat.rb, line 20 def verify(algorithm, key, signing_input, signature) Deprecations.warning('Support for calling verify with positional arguments will be removed in future ruby-jwt versions') from_algorithm(algorithm).verify(data: signing_input, signature: signature, verification_key: key) end