Class: Metasploit::Credential::Public
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Metasploit::Credential::Public
- Includes:
- Model::Search
- Defined in:
- app/models/metasploit/credential/public.rb
Overview
A publicly disclosed credential, i.e. a #username.
Instance Attribute Summary collapse
-
#cores ⇒ ActiveRecord::Relation<Metasploit::Credential::Core>
The core credentials that combine this public credential with its derived private credential and/or realm.
-
#created_at ⇒ DateTime
When this credential was created.
-
#updated_at ⇒ DateTime
The last time this credential was updated.
-
#username ⇒ String
The username for this credential.
Instance Method Summary collapse
-
#to_s ⇒ String
A string suitable for displaying to the user.
Instance Attribute Details
#cores ⇒ ActiveRecord::Relation<Metasploit::Credential::Core>
The core credentials that combine this public credential with its derived private credential and/or realm.
14 15 16 17 |
# File 'app/models/metasploit/credential/public.rb', line 14 has_many :cores, class_name: 'Metasploit::Credential::Core', dependent: :destroy, inverse_of: :public |
#created_at ⇒ DateTime
When this credential was created.
|
# File 'app/models/metasploit/credential/public.rb', line 23
|
#updated_at ⇒ DateTime
The last time this credential was updated.
|
# File 'app/models/metasploit/credential/public.rb', line 28
|
#username ⇒ String
The username for this credential
|
# File 'app/models/metasploit/credential/public.rb', line 33
|
Instance Method Details
#to_s ⇒ String
A string suitable for displaying to the user
67 68 69 |
# File 'app/models/metasploit/credential/public.rb', line 67 def to_s username.to_s end |