Class: Rex::Proto::Kerberos::Model::KerberosTime

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

Overview

This class provides a representation of KerberosTime

Class Method Summary collapse

Class Method Details

.decode(input) ⇒ Object



8
9
10
11
# File 'lib/rex/proto/kerberos/model/kerberos_time.rb', line 8

def self.decode(input)
  # Example decoding logic for KerberosTime
  Time.at(input.to_i)
end

.encode(time) ⇒ Object



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

def self.encode(time)
  # Example encoding logic for KerberosTime
  OpenSSL::ASN1::Integer.new(time.to_i)
end