Sha256: b73bdc1862a19e759bc65172976e6c72ba4c867a5e0dac3ff902645717a2fce1

Contents?: true

Size: 1 KB

Versions: 94

Compression:

Stored size: 1 KB

Contents

# Origin of {#cores core credentials} that are manually entered by a {#user}.
class Metasploit::Credential::Origin::Manual < ActiveRecord::Base
  #
  # Associations
  #

  # @!attribute cores
  #   {Metasploit::Credential::Core Core credentials} that were entered by the {#user}.
  #
  #   @return [ActiveRecord::Relation<Metasploit::Credential::Core>]
  has_many :cores,
           as: :origin,
           class_name: 'Metasploit::Credential::Core',
           dependent: :destroy

  # @!attribute user
  #   The user that manually enters the credentials.
  #
  #   @return [Mdm::User]
  belongs_to :user,
             class_name: 'Mdm::User',
             inverse_of: :credential_origins

  #
  # Attribute
  #

  # @!attribute created_at
  #   When the credentials were manually created.
  #
  #   @return [DateTime]

  # @!attribute updated_at
  #   When this origin was last updated.
  #
  #   @return [DateTime]

  #
  # Validations
  #

  validates :user,
            presence: true

  Metasploit::Concern.run(self)
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
metasploit-credential-3.0.4 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-3.0.3 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-3.0.2 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-3.0.1 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-3.0.0 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.14 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.13 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.12 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.11 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.10 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.9 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.8 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.7 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.6 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.5 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.4 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.3 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.2 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.1 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-2.0.0 app/models/metasploit/credential/origin/manual.rb