Skip to content

Commit

Permalink
Change class name Factory to KeyAbstract.
Browse files Browse the repository at this point in the history
  • Loading branch information
phlegx authored and excpt committed Sep 28, 2020
1 parent a814d9f commit c5bf337
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/jwt/jwk.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative 'jwk/factory'
require_relative 'jwk/key_abstract'
require_relative 'jwk/rsa'
require_relative 'jwk/hmac'
require_relative 'jwk/key_finder'
Expand Down
2 changes: 1 addition & 1 deletion lib/jwt/jwk/hmac.rb
Expand Up @@ -2,7 +2,7 @@

module JWT
module JWK
class HMAC < Factory
class HMAC < KeyAbstract
KTY = 'oct'.freeze

def initialize(keypair, kid = nil)
Expand Down
2 changes: 1 addition & 1 deletion lib/jwt/jwk/factory.rb → lib/jwt/jwk/key_abstract.rb
Expand Up @@ -2,7 +2,7 @@

module JWT
module JWK
class Factory
class KeyAbstract
attr_reader :keypair, :kid

def initialize(keypair, kid = nil)
Expand Down

0 comments on commit c5bf337

Please sign in to comment.