Sha256: c1890685e5ff85d2370e2a78b017eeb2a5a7a998e65a7c06f7f5a95f9673994e

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

module JWT
  module JWK
    class KeyBase
      attr_reader :keypair, :kid

      def initialize(keypair, kid = nil)
        @keypair = keypair
        @kid     = kid
      end

      def self.inherited(klass)
        ::JWT::JWK.classes << klass
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jwt-2.3.0 lib/jwt/jwk/key_base.rb
jwt-2.2.3 lib/jwt/jwk/key_base.rb