Class: Rex::Proto::Kerberos::CredentialCache::Time
- Defined in:
- lib/rex/proto/kerberos/credential_cache/time.rb
Overview
This class provides a representation of credential times stored in the Kerberos Credential Cache.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#encode ⇒ String
Encodes the Rex::Proto::Kerberos::CredentialCache::Time into an String.
Methods inherited from Element
attr_accessor, attributes, #attributes, #initialize
Constructor Details
This class inherits a constructor from Rex::Proto::Kerberos::CredentialCache::Element
Instance Attribute Details
#auth_time ⇒ Fixnum
11 12 13 |
# File 'lib/rex/proto/kerberos/credential_cache/time.rb', line 11 def auth_time @auth_time end |
#end_time ⇒ Fixnum
17 18 19 |
# File 'lib/rex/proto/kerberos/credential_cache/time.rb', line 17 def end_time @end_time end |
#renew_till ⇒ Fixnum
20 21 22 |
# File 'lib/rex/proto/kerberos/credential_cache/time.rb', line 20 def renew_till @renew_till end |
#start_time ⇒ Fixnum
14 15 16 |
# File 'lib/rex/proto/kerberos/credential_cache/time.rb', line 14 def start_time @start_time end |
Instance Method Details
#encode ⇒ String
Encodes the Rex::Proto::Kerberos::CredentialCache::Time into an String
25 26 27 28 29 30 31 32 33 |
# File 'lib/rex/proto/kerberos/credential_cache/time.rb', line 25 def encode encoded = '' encoded << encode_auth_time encoded << encode_start_time encoded << encode_end_time encoded << encode_renew_time encoded end |