Sha256: 523afc8dfbcd902bdfda13b77bb2ad3533b0c5597fd19ff04e0b627d31118963
Contents?: true
Size: 897 Bytes
Versions: 3
Compression:
Stored size: 897 Bytes
Contents
# frozen_string_literal: true module JWT module JWA # @api private class Wrapper include SigningAlgorithm def initialize(algorithm) @algorithm = algorithm end def alg return @algorithm.alg if @algorithm.respond_to?(:alg) super end def valid_alg?(alg_to_check) return @algorithm.valid_alg?(alg_to_check) if @algorithm.respond_to?(:valid_alg?) super end def header(*args, **kwargs) return @algorithm.header(*args, **kwargs) if @algorithm.respond_to?(:header) super end def sign(*args, **kwargs) return @algorithm.sign(*args, **kwargs) if @algorithm.respond_to?(:sign) super end def verify(*args, **kwargs) return @algorithm.verify(*args, **kwargs) if @algorithm.respond_to?(:verify) super end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
minato_ruby_api_client-0.2.2 | vendor/bundle/ruby/3.2.0/gems/jwt-2.10.1/lib/jwt/jwa/wrapper.rb |
jwt-2.10.1 | lib/jwt/jwa/wrapper.rb |
jwt-2.10.0 | lib/jwt/jwa/wrapper.rb |