Class: PkiExpress::PKAlgorithm

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

Direct Known Subclasses

RSAPKAlgorithm

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, oid) ⇒ PKAlgorithm

Returns a new instance of PKAlgorithm.



133
134
135
136
# File 'lib/pki_express/pk_algorithms.rb', line 133

def initialize(name, oid)
  @name = name
  @oid = oid
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



131
132
133
# File 'lib/pki_express/pk_algorithms.rb', line 131

def name
  @name
end

#oidObject

Returns the value of attribute oid.



131
132
133
# File 'lib/pki_express/pk_algorithms.rb', line 131

def oid
  @oid
end

Instance Method Details

#rsaObject



138
139
140
# File 'lib/pki_express/pk_algorithms.rb', line 138

def rsa
  RSAPKAlgorithm.new
end