Class: Rex::Proto::Kerberos::Model::PreAuthPkAsReq

Inherits:
RASN1::Model
  • Object
show all
Defined in:
lib/rex/proto/kerberos/model/pre_auth_pk_as_req.rb

Overview

This class is a representation of a KERB-PA-PK-AS-REQ, pre authenticated data to perform PKINIT

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#signed_auth_packObject

Returns the value of attribute signed_auth_pack.



14
15
16
# File 'lib/rex/proto/kerberos/model/pre_auth_pk_as_req.rb', line 14

def signed_auth_pack
  @signed_auth_pack
end

Class Method Details

.decode(str) ⇒ Object



28
29
30
# File 'lib/rex/proto/kerberos/model/pre_auth_pk_as_req.rb', line 28

def self.decode(str)
  self.parse(str)
end

Instance Method Details

#parse!(der, ber: false) ⇒ Object



16
17
18
19
20
21
# File 'lib/rex/proto/kerberos/model/pre_auth_pk_as_req.rb', line 16

def parse!(der, ber: false)
  res = super(der, ber: ber)
  self.signed_auth_pack = Rex::Proto::Kerberos::Model::Pkinit::ContentInfo.parse(self[:signed_auth_pack].value)

  res
end

#to_derObject



23
24
25
26
# File 'lib/rex/proto/kerberos/model/pre_auth_pk_as_req.rb', line 23

def to_der
  self[:signed_auth_pack] = self.signed_auth_pack.to_der
  super
end