Sha256: d26a63eb61f4a09fac7bb100619363b3a94e56dea03e19aa2af8dfadceb0f4cc

Contents?: true

Size: 500 Bytes

Versions: 17

Compression:

Stored size: 500 Bytes

Contents

# encoding: utf-8
require "logstash/namespace"

# This class exists to quietly wrap a password string so that, when printed or
# logged, you don't accidentally print the password itself.
module LogStash module Util class Password
  attr_reader :value

  public
  def initialize(password)
    @value = password
  end # def initialize

  public
  def to_s
    return "<password>"
  end # def to_s

  public
  def inspect
    return to_s
  end # def inspect
end end end # class LogStash::Util::Password

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
logstash-core-6.3.2-java lib/logstash/util/password.rb
logstash-core-6.3.1-java lib/logstash/util/password.rb
logstash-core-6.3.0-java lib/logstash/util/password.rb
logstash-core-6.2.4-java lib/logstash/util/password.rb
logstash-core-6.2.3-java lib/logstash/util/password.rb
logstash-core-6.1.4-java lib/logstash/util/password.rb
logstash-core-6.2.2-java lib/logstash/util/password.rb
logstash-core-6.2.1-java lib/logstash/util/password.rb
logstash-core-6.2.0-java lib/logstash/util/password.rb
logstash-core-6.1.3-java lib/logstash/util/password.rb
logstash-core-6.1.2-java lib/logstash/util/password.rb
logstash-core-6.1.1-java lib/logstash/util/password.rb
logstash-core-6.1.0-java lib/logstash/util/password.rb
logstash-core-6.0.1-java lib/logstash/util/password.rb
logstash-core-6.0.0-java lib/logstash/util/password.rb
logstash-core-6.0.0.rc2-java lib/logstash/util/password.rb
logstash-core-6.0.0.rc1-java lib/logstash/util/password.rb