Class: Ingenico::Connect::SDK::Logging::HeaderObfuscator Deprecated
- Inherits:
-
Obfuscator
- Object
- Obfuscator
- Ingenico::Connect::SDK::Logging::HeaderObfuscator
- Defined in:
- lib/ingenico/connect/sdk/logging/logging_util.rb
Overview
Deprecated.
This class shouldn’t have been exposed
Class that obfuscates headers of a message
Defined Under Namespace
Classes: Builder
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(obfuscators) ⇒ HeaderObfuscator
constructor
A new instance of HeaderObfuscator.
- #obfuscate_value(key, value) ⇒ Object
Constructor Details
#initialize(obfuscators) ⇒ HeaderObfuscator
Returns a new instance of HeaderObfuscator.
171 172 173 174 175 176 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 171 def initialize(obfuscators) # case insensitive super(obfuscators, true) obfuscation_rules = obfuscators.map { |key, value| [key, ->(v) { value.obfuscate_value(v) }] } @obfuscator = Obfuscation::HeaderObfuscator.new(obfuscation_rules) end |
Class Method Details
.builder ⇒ Object
182 183 184 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 182 def self.builder Builder.new end |
Instance Method Details
#obfuscate_value(key, value) ⇒ Object
178 179 180 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 178 def obfuscate_value(key, value) @obfuscator.obfuscate_header(key, value) end |