Sha256: b9f02c4b8c18bd47470b33b1f315d2f168b8cd8d98b79dab4138a07f2c591cc8

Contents?: true

Size: 593 Bytes

Versions: 51

Compression:

Stored size: 593 Bytes

Contents

# Copyright (c) 2012 National ICT Australia Limited (NICTA).
# This software may be used and distributed solely under the terms of the MIT license (License).
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
# By downloading or using this software you accept the terms and the liability disclaimer in the License.

require 'openssl'
require 'singleton'

module OmfCommon
  class Key
    include Singleton

    attr_accessor :private_key

    def import(filename)
      self.private_key = OpenSSL::PKey.read(File.read(filename))
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
omf_common-6.2.3 lib/omf_common/key.rb
omf_common-6.2.2 lib/omf_common/key.rb
omf_common-6.2.1 lib/omf_common/key.rb
omf_common-6.2.0 lib/omf_common/key.rb
omf_common-6.2.0.pre.2 lib/omf_common/key.rb
omf_common-6.2.0.pre.1 lib/omf_common/key.rb
omf_common-6.1.14.pre.2 lib/omf_common/key.rb
omf_common-6.1.14.pre.1 lib/omf_common/key.rb
omf_common-6.1.12 lib/omf_common/key.rb
omf_common-6.1.11 lib/omf_common/key.rb
omf_common-6.1.10 lib/omf_common/key.rb
omf_common-6.1.9 lib/omf_common/key.rb
omf_common-6.1.9.pre.4 lib/omf_common/key.rb
omf_common-6.1.9.pre.3 lib/omf_common/key.rb
omf_common-6.1.9.pre.2 lib/omf_common/key.rb
omf_common-6.1.8 lib/omf_common/key.rb
omf_common-6.1.7 lib/omf_common/key.rb
omf_common-6.1.6 lib/omf_common/key.rb
omf_common-6.1.6.pre.2 lib/omf_common/key.rb
omf_common-6.1.6.pre.1 lib/omf_common/key.rb