Class: Metasploit::Credential::Realm
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Metasploit::Credential::Realm
- Extended by:
- ActiveSupport::Autoload
- Includes:
- Model::Search
- Defined in:
- app/models/metasploit/credential/realm.rb
Overview
Instance Attribute Summary collapse
-
#cores ⇒ ActiveRecord::Relation<Metasploit::Credential::Core>
The core credentials that combine this realm with private credentials and/or public credentials gathered from the realm or used to authenticated to the realm.
-
#created_at ⇒ DateTime
When this realm was created.
-
#key ⇒ String
The name of the key for the realm.
-
#updated_at ⇒ DateTime
The last time this realm was updated.
-
#value ⇒ String
The value of the #key for the realm.
Class Method Summary collapse
-
.key_set ⇒ Set<String>
Set of valid values for searching #key.
Instance Method Summary collapse
Instance Attribute Details
#cores ⇒ ActiveRecord::Relation<Metasploit::Credential::Core>
The core credentials that combine this realm with private credentials and/or public credentials gathered from the realm or used to authenticated to the realm.
20 21 22 23 |
# File 'app/models/metasploit/credential/realm.rb', line 20 has_many :cores, class_name: 'Metasploit::Credential::Core', dependent: :destroy, inverse_of: :realm |
#created_at ⇒ DateTime
When this realm was created.
|
# File 'app/models/metasploit/credential/realm.rb', line 29
|
#key ⇒ String
If a key is used more than once, it should be added to the Key constants and that constant should be used in place of the bare string.
The name of the key for the realm.
|
# File 'app/models/metasploit/credential/realm.rb', line 34
|
#updated_at ⇒ DateTime
The last time this realm was updated.
|
# File 'app/models/metasploit/credential/realm.rb', line 42
|
#value ⇒ String
The value of the #key for the realm.
|
# File 'app/models/metasploit/credential/realm.rb', line 47
|
Class Method Details
.key_set ⇒ Set<String>
Set of valid values for searching #key.
94 95 96 |
# File 'app/models/metasploit/credential/realm.rb', line 94 def self.key_set @key_set ||= Set.new Metasploit::Model::Realm::Key::ALL end |
Instance Method Details
#to_s ⇒ String
103 104 105 |
# File 'app/models/metasploit/credential/realm.rb', line 103 def to_s value.to_s end |