1# -*- coding: binary -*- 2module Rex 3 module Proto 4 module Kerberos 5 module Model 6 # This class provides a representation of KerberosTime 7 class KerberosTime 8 def self.decode(input) 9 # Example decoding logic for KerberosTime 10 Time.at(input.to_i) 11 end 12 13 def self.encode(time) 14 # Example encoding logic for KerberosTime 15 OpenSSL::ASN1::Integer.new(time.to_i) 16 end 17 end 18 end 19 end 20 end 21end 22