Sha256: 79800e17be06b0281f6049ecaddb74d06534d8fd176236f92e678b1772bf7066
Contents?: true
Size: 1.45 KB
Versions: 26
Compression:
Stored size: 1.45 KB
Contents
# A publicly disclosed credential, i.e. a {#username}. class Metasploit::Credential::Public < ActiveRecord::Base include Metasploit::Model::Search # # Associations # # @!attribute cores # The {Metasploit::Credential::Core core credentials} that combine this public credential with its derived # {Metasploit::Credential::Private private credential} and/or {Metasploit::Credential::Realm realm}. # # @return [ActiveRecord::Relation<Metasploit::Credential::Core>] has_many :cores, class_name: 'Metasploit::Credential::Core', dependent: :destroy, inverse_of: :public # # Attributes # # @!attribute created_at # When this credential was created. # # @return [DateTime] # @!attribute updated_at # The last time this credential was updated. # # @return [DateTime] # @!attribute username # The username for this credential # # @return [String] # # # Search # # # # Search Attributes # search_attribute :username, type: :string # # Search Withs # search_with Metasploit::Credential::Search::Operator::Type, class_names: %w{ Metasploit::Credential::BlankUsername Metasploit::Credential::Username } # # Instance Methods # # A string suitable for displaying to the user # # @return [String] def to_s username.to_s end Metasploit::Concern.run(self) end
Version data entries
26 entries across 26 versions & 1 rubygems