Class: Rex::Proto::Kerberos::Model::Pkinit::Name
- Inherits:
-
Object
- Object
- Rex::Proto::Kerberos::Model::Pkinit::Name
- Defined in:
- lib/rex/proto/kerberos/model/pkinit.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Rather than specifying the entire structure of a name, we pass this off to OpenSSL, effectively providing an interface between RASN and OpenSSL.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Name
constructor
A new instance of Name.
- #parse!(str, ber: false) ⇒ Object
- #to_der ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Name
Returns a new instance of Name.
113 114 |
# File 'lib/rex/proto/kerberos/model/pkinit.rb', line 113 def initialize(={}) end |
Instance Attribute Details
#value ⇒ Object
Rather than specifying the entire structure of a name, we pass this off to OpenSSL, effectively providing an interface between RASN and OpenSSL.
111 112 113 |
# File 'lib/rex/proto/kerberos/model/pkinit.rb', line 111 def value @value end |
Instance Method Details
#parse!(str, ber: false) ⇒ Object
116 117 118 119 |
# File 'lib/rex/proto/kerberos/model/pkinit.rb', line 116 def parse!(str, ber: false) self.value = OpenSSL::X509::Name.new(str) to_der.length end |
#to_der ⇒ Object
121 122 123 |
# File 'lib/rex/proto/kerberos/model/pkinit.rb', line 121 def to_der self.value.to_der end |