Sha256: d70838b7742d0ff1b70b6060038a55fdfb978fa667a01d5a87eb7bf00f121db8

Contents?: true

Size: 1 KB

Versions: 28

Compression:

Stored size: 1 KB

Contents

# Origin of {#cores core credentials} that are manually entered by a {#user}.
class Metasploit::Credential::Origin::Manual < ApplicationRecord
  #
  # 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

28 entries across 28 versions & 1 rubygems

Version Path
metasploit-credential-6.0.11 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.10 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.9 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.8 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.7 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.6 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.5 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.4 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.3 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.2 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.1 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-6.0.0 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-5.0.9 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-5.0.8 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-5.0.7 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-5.0.6 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-5.0.5 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-5.0.4 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-5.0.3 app/models/metasploit/credential/origin/manual.rb
metasploit-credential-5.0.2 app/models/metasploit/credential/origin/manual.rb