Class: Rex::Proto::Kerberos::CredentialCache::Credential
- Inherits:
-
Element
- Object
- Element
- Rex::Proto::Kerberos::CredentialCache::Credential
show all
- Defined in:
- lib/rex/proto/kerberos/credential_cache/credential.rb
Overview
This class provides a representation of a Credential stored in the Kerberos Credential Cache.
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#encode ⇒ String
Encodes the Rex::Proto::Kerberos::CredentialCache::Credential into an String.
Methods inherited from Element
attr_accessor, attributes, #attributes, #initialize
Instance Attribute Details
#addrs ⇒ Array
29
30
31
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 29
def addrs
@addrs
end
|
#auth_data ⇒ Array
32
33
34
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 32
def auth_data
@auth_data
end
|
11
12
13
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 11
def client
@client
end
|
#is_skey ⇒ Fixnum
23
24
25
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 23
def is_skey
@is_skey
end
|
17
18
19
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 17
def key
@key
end
|
#second_ticket ⇒ String
38
39
40
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 38
def second_ticket
@second_ticket
end
|
14
15
16
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 14
def server
@server
end
|
#ticket ⇒ String
35
36
37
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 35
def ticket
@ticket
end
|
20
21
22
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 20
def time
@time
end
|
#tkt_flags ⇒ Fixnum
26
27
28
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 26
def tkt_flags
@tkt_flags
end
|
Instance Method Details
#encode ⇒ String
Encodes the Rex::Proto::Kerberos::CredentialCache::Credential into an String
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/rex/proto/kerberos/credential_cache/credential.rb', line 43
def encode
encoded = ''
encoded << encode_client
encoded << encode_server
encoded << encode_key
encoded << encode_time
encoded << encode_is_skey
encoded << encode_tkt_flags
encoded << encode_addrs
encoded << encode_auth_data
encoded << encode_ticket
encoded << encode_second_ticket
end
|