Sha256: 12992e3e3aee94474fec24192c0f74ade498fbf54b69c0f2d785a28ae709d9d8

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 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)
        super
        ::JWT::JWK.classes << klass
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jwt-2.4.1 lib/jwt/jwk/key_base.rb
jwt-2.4.0 lib/jwt/jwk/key_base.rb
jwt-2.4.0.beta1 lib/jwt/jwk/key_base.rb