Class: Pkernel::Identity
- Inherits:
-
Object
- Object
- Pkernel::Identity
- Defined in:
- lib/pkernel.rb
Overview
Identity Identity is abstraction consist of keypair + certificate, stored separately
Instance Attribute Summary collapse
-
#certificate ⇒ Object
readonly
Returns the value of attribute certificate.
-
#chain ⇒ Object
readonly
Returns the value of attribute chain.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#keystore ⇒ Object
readonly
Returns the value of attribute keystore.
-
#privKey ⇒ Object
readonly
Returns the value of attribute privKey.
-
#pubKey ⇒ Object
readonly
Returns the value of attribute pubKey.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Identity
constructor
A new instance of Identity.
Constructor Details
#initialize(opts = {}) ⇒ Identity
Returns a new instance of Identity.
137 138 139 140 141 142 143 144 |
# File 'lib/pkernel.rb', line 137 def initialize(opts = {}) @key = opts[:key] @pubKey = opts[:pubKey] @privKey = opts[:privKey] @certificate = opts[:certificate] @keystore = opts[:keystore] @chain = opts[:chain] end |
Instance Attribute Details
#certificate ⇒ Object (readonly)
Returns the value of attribute certificate.
136 137 138 |
# File 'lib/pkernel.rb', line 136 def certificate @certificate end |
#chain ⇒ Object (readonly)
Returns the value of attribute chain.
136 137 138 |
# File 'lib/pkernel.rb', line 136 def chain @chain end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
136 137 138 |
# File 'lib/pkernel.rb', line 136 def key @key end |
#keystore ⇒ Object (readonly)
Returns the value of attribute keystore.
136 137 138 |
# File 'lib/pkernel.rb', line 136 def keystore @keystore end |
#privKey ⇒ Object (readonly)
Returns the value of attribute privKey.
136 137 138 |
# File 'lib/pkernel.rb', line 136 def privKey @privKey end |
#pubKey ⇒ Object (readonly)
Returns the value of attribute pubKey.
136 137 138 |
# File 'lib/pkernel.rb', line 136 def pubKey @pubKey end |