Sha256: b2683156e074625aac703e7682976e5279a6db9a3eff3ccb558347d8c6ef52e5

Contents?: true

Size: 505 Bytes

Versions: 218

Compression:

Stored size: 505 Bytes

Contents

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

# This class exists to quietly wrap a password string so that, when printed or
# logged, you don't accidentally print the password itself.
class LogStash::Util::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 # class LogStash::Util::Password

Version data entries

218 entries across 209 versions & 18 rubygems

Version Path
logstash-core-1.5.0-java lib/logstash/util/password.rb
logstash-core-1.5.0.snapshot1-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc4-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc4.snapshot2-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc4.snapshot1-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc3-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc3.snapshot6-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc3.snapshot5-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc3.snapshot4-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc3.snapshot3-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc3.snapshot2-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc3.snapshot1-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc2-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc2.snapshot-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc1.1-java lib/logstash/util/password.rb
logstash-core-1.5.0.rc1-java lib/logstash/util/password.rb
logstash-core-1.5.0.beta2-java lib/logstash/util/password.rb
logstash-lib-1.3.2 lib/logstash/util/password.rb