Commit 4b7b74f

mokha <mo@mokhan.ca>
2019-04-20 16:50:43
allow encrypted_key as ctor parameter
1 parent 08484bf
Changed files (1)
lib
lib/xml/kit/key_info.rb
@@ -16,7 +16,8 @@ module Xml
       attr_accessor :x509_data
       attr_accessor :encrypted_key
 
-      def initialize(x509: nil)
+      def initialize(x509: nil, encrypted_key: nil)
+        @encrypted_key = encrypted_key
         @x509_data = x509
         yield self if block_given?
       end