class Rex::Proto::Kerberos::CredentialCache::Time
This class provides a representation of credential times stored in the Kerberos
Credential
Cache
.
Attributes
auth_time[RW]
@!attribute auth_time
@return [Fixnum]
end_time[RW]
@!attribute end_time
@return [Fixnum]
renew_till[RW]
@!attribute renew_till
@return [Fixnum]
start_time[RW]
@!attribute start_time
@return [Fixnum]
Public Instance Methods
encode()
click to toggle source
Encodes the Rex::Proto::Kerberos::CredentialCache::Time
into an String
@return [String] encoded time
# File lib/rex/proto/kerberos/credential_cache/time.rb, line 24 def encode encoded = '' encoded << encode_auth_time encoded << encode_start_time encoded << encode_end_time encoded << encode_renew_time encoded end
Private Instance Methods
encode_auth_time()
click to toggle source
Encodes the auth_time
field
@return [String]
# File lib/rex/proto/kerberos/credential_cache/time.rb, line 39 def encode_auth_time [auth_time].pack('N') end
encode_end_time()
click to toggle source
Encodes the end_time
field
@return [String]
# File lib/rex/proto/kerberos/credential_cache/time.rb, line 53 def encode_end_time [end_time].pack('N') end
encode_renew_time()
click to toggle source
Encodes the renew_time field
@return [String]
# File lib/rex/proto/kerberos/credential_cache/time.rb, line 60 def encode_renew_time [renew_till].pack('N') end
encode_start_time()
click to toggle source
Encodes the start_time
field
@return [String]
# File lib/rex/proto/kerberos/credential_cache/time.rb, line 46 def encode_start_time [start_time].pack('N') end