Class: Pkernel::Identity

Inherits:
Object
  • Object
show all
Defined in:
lib/pkernel.rb

Overview

Identity Identity is abstraction consist of keypair + certificate, stored separately

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#certificateObject (readonly)

Returns the value of attribute certificate.



136
137
138
# File 'lib/pkernel.rb', line 136

def certificate
  @certificate
end

#chainObject (readonly)

Returns the value of attribute chain.



136
137
138
# File 'lib/pkernel.rb', line 136

def chain
  @chain
end

#keyObject (readonly)

Returns the value of attribute key.



136
137
138
# File 'lib/pkernel.rb', line 136

def key
  @key
end

#keystoreObject (readonly)

Returns the value of attribute keystore.



136
137
138
# File 'lib/pkernel.rb', line 136

def keystore
  @keystore
end

#privKeyObject (readonly)

Returns the value of attribute privKey.



136
137
138
# File 'lib/pkernel.rb', line 136

def privKey
  @privKey
end

#pubKeyObject (readonly)

Returns the value of attribute pubKey.



136
137
138
# File 'lib/pkernel.rb', line 136

def pubKey
  @pubKey
end