Class: Rex::Proto::Kerberos::CredentialCache::Cache
- Defined in:
- lib/rex/proto/kerberos/credential_cache/cache.rb
Overview
This class provides a representation of a Kerberos Credential Cache.
Instance Attribute Summary collapse
-
#credentials ⇒ Array<Rex::Proto::Kerberos::CredentialCache::Credential>
The primary principal credentials.
-
#headers ⇒ Array<String>
The header tags.
-
#primary_principal ⇒ Rex::Proto::Kerberos::CredentialCache::Principal
The principal cache’s owner.
-
#version ⇒ Fixnum
The file format version.
Instance Method Summary collapse
-
#encode ⇒ String
Encodes the Rex::Proto::Kerberos::CredentialCache::Cache 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
#credentials ⇒ Array<Rex::Proto::Kerberos::CredentialCache::Credential>
Returns The primary principal credentials.
21 22 23 |
# File 'lib/rex/proto/kerberos/credential_cache/cache.rb', line 21 def credentials @credentials end |
#headers ⇒ Array<String>
Returns The header tags.
15 16 17 |
# File 'lib/rex/proto/kerberos/credential_cache/cache.rb', line 15 def headers @headers end |
#primary_principal ⇒ Rex::Proto::Kerberos::CredentialCache::Principal
Returns The principal cache’s owner.
18 19 20 |
# File 'lib/rex/proto/kerberos/credential_cache/cache.rb', line 18 def primary_principal @primary_principal end |
#version ⇒ Fixnum
Returns The file format version.
12 13 14 |
# File 'lib/rex/proto/kerberos/credential_cache/cache.rb', line 12 def version @version end |
Instance Method Details
#encode ⇒ String
Encodes the Rex::Proto::Kerberos::CredentialCache::Cache into an String
26 27 28 29 30 31 32 |
# File 'lib/rex/proto/kerberos/credential_cache/cache.rb', line 26 def encode encoded = '' encoded << encode_version encoded << encode_headers encoded << encode_primary_principal encoded << encode_credentials end |