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



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

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

Instance Attribute Details

#privkObject (readonly)

ASCII-armored private key



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

def privk
  @privk
end

#pubkObject (readonly)

ASCII-armored public key



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

def pubk
  @pubk
end