Class: KStor::Crypto::KeyPair
- Inherits:
-
Object
- Object
- KStor::Crypto::KeyPair
- Defined in:
- lib/kstor/crypto/keys.rb
Overview
Holds together a public and private key pair.
Instance Attribute Summary collapse
-
#privk ⇒ Object
readonly
ASCII-armored private key.
-
#pubk ⇒ Object
readonly
ASCII-armored public key.
Instance Method Summary collapse
-
#initialize(pubk, privk) ⇒ KeyPair
constructor
Create a KeyPair instance.
Constructor Details
#initialize(pubk, privk) ⇒ KeyPair
Create a KeyPair instance.
37 38 39 40 |
# File 'lib/kstor/crypto/keys.rb', line 37 def initialize(pubk, privk) @pubk = pubk @privk = privk end |
Instance Attribute Details
#privk ⇒ Object (readonly)
ASCII-armored private key
31 32 33 |
# File 'lib/kstor/crypto/keys.rb', line 31 def privk @privk end |
#pubk ⇒ Object (readonly)
ASCII-armored public key
29 30 31 |
# File 'lib/kstor/crypto/keys.rb', line 29 def pubk @pubk end |