Class: KStor::Crypto::KeyPair

Inherits:
Object
  • Object
show all
Defined in:
lib/kstor/crypto/keys.rb

Overview

Holds together a public and private key pair.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pubk, privk) ⇒ KeyPair

Create a KeyPair instance.

Parameters:

  • pubk (String)

    ASCII-armored public key

  • privk (String)

    ASCII-armored private key



37
38
39
40
# File 'lib/kstor/crypto/keys.rb', line 37

def initialize(pubk, privk)
  @pubk = pubk
  @privk = privk
end

Instance Attribute Details

#privkObject (readonly)

ASCII-armored private key



31
32
33
# File 'lib/kstor/crypto/keys.rb', line 31

def privk
  @privk
end

#pubkObject (readonly)

ASCII-armored public key



29
30
31
# File 'lib/kstor/crypto/keys.rb', line 29

def pubk
  @pubk
end