Class: Rex::Proto::Kerberos::Keytab::Krb5KeytabEpoch

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/rex/proto/kerberos/keytab/krb5_keytab.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#epochInteger

Returns:

  • (Integer)


47
# File 'lib/rex/proto/kerberos/keytab/krb5_keytab.rb', line 47

uint32 :epoch

Instance Method Details

#getObject



49
50
51
# File 'lib/rex/proto/kerberos/keytab/krb5_keytab.rb', line 49

def get
  Time.at(epoch)
end

#set(v) ⇒ Object



53
54
55
# File 'lib/rex/proto/kerberos/keytab/krb5_keytab.rb', line 53

def set(v)
  self.epoch = v.to_i
end