class JWT::JWA::Wrapper
@api private
Public Class Methods
Source
# File lib/jwt/jwa/wrapper.rb, line 9 def initialize(algorithm) @algorithm = algorithm end
Public Instance Methods
Source
# File lib/jwt/jwa/wrapper.rb, line 13 def alg return @algorithm.alg if @algorithm.respond_to?(:alg) super end
Calls superclass method
Source
# File lib/jwt/jwa/wrapper.rb, line 25 def header(*args, **kwargs) return @algorithm.header(*args, **kwargs) if @algorithm.respond_to?(:header) super end
Calls superclass method
JWT::JWA::SigningAlgorithm#header
Source
# File lib/jwt/jwa/wrapper.rb, line 31 def sign(*args, **kwargs) return @algorithm.sign(*args, **kwargs) if @algorithm.respond_to?(:sign) super end
Calls superclass method
JWT::JWA::SigningAlgorithm#sign
Source
# File lib/jwt/jwa/wrapper.rb, line 19 def valid_alg?(alg_to_check) return @algorithm.valid_alg?(alg_to_check) if @algorithm.respond_to?(:valid_alg?) super end
Calls superclass method
JWT::JWA::SigningAlgorithm#valid_alg?
Source
# File lib/jwt/jwa/wrapper.rb, line 37 def verify(*args, **kwargs) return @algorithm.verify(*args, **kwargs) if @algorithm.respond_to?(:verify) super end
Calls superclass method
JWT::JWA::SigningAlgorithm#verify