Module: OnlinePayments::SDK::Logging::LoggingUtil
- Defined in:
- lib/onlinepayments/sdk/logging/logging_util.rb
Overview
end of property obfuscator
Constant Summary collapse
- @@PROPERTY_OBFUSCATOR =
PropertyObfuscator.builder .with_field("cardNumber") .with_field("expiryDate") .with_field("cvv") .with_field("iban") .with_field("accountNumber") .with_field("reformattedAccountNumber") .with_field("additionalInfo") .with_field("cardholderName") .with_field("dateOfBirth") .with_field("emailAddress") .with_field("faxNumber") .with_field("firstName") .with_field("houseNumber") .with_field("mobilePhoneNumber") .with_field("passengerName") .with_field("phoneNumber") .with_field("street") .with_field("surname") .with_field("workPhoneNumber") .with_field("zip") .with_field("bin") .with_field("value") .with_sensitive_field("keyId") .with_sensitive_field("secretKey") .with_sensitive_field("publicKey") .with_sensitive_field("userAuthenticationToken") .with_sensitive_field("encryptedPayload") .with_sensitive_field("decryptedPayload") .with_sensitive_field("encryptedCustomerInput") .build
- @@HEADER_OBFUSCATOR =
HeaderObfuscator.builder .with_sensitive_field("Authorization") .with_sensitive_field("WWW-Authenticate") .with_sensitive_field("Proxy-Authenticate") .with_sensitive_field("Proxy-Authorization") .with_sensitive_field("X-GCS-Authentication-Token") .with_sensitive_field("X-GCS-CallerPassword") .build
Class Method Summary collapse
Class Method Details
.obfuscate_body(body) ⇒ Object
277 278 279 |
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 277 def self.obfuscate_body(body) @@PROPERTY_OBFUSCATOR.obfuscate(body) end |
.obfuscate_header(name, value) ⇒ Object
281 282 283 |
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 281 def self.obfuscate_header(name, value) @@HEADER_OBFUSCATOR.obfuscate_value(name, value) end |