Class: Mongo::Options::RedactedHash Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Hash
|
|
|
Instance Chain:
self,
RedactedRepresentation,
Hash
|
|
| Inherits: |
Hash
|
| Defined in: | lib/mongo/options/redacted.rb |
Overview
A plain Hash whose string and serialized representations redact sensitive values.
Unlike Redacted, which is a BSON::Document and normalizes its keys to
strings, this class preserves the keys exactly as they were inserted.
It is used for option hashes whose key types are part of the driver's
observable behavior. Accessing the hash returns the real values;
deserializing a representation with sensitive values raises
ArgumentError.
Constant Summary
RedactedRepresentation - Included
LEGACY_SERIALIZATION_ERROR, REDACTED_SERIALIZATION_ERROR, SERIALIZATION_OPTIONS_KEY, SERIALIZATION_REDACTED_KEY
Instance Attribute Summary
RedactedRepresentation - Included
Instance Method Summary
RedactedRepresentation - Included
| #as_extended_json | Convert the options to a Hash for BSON Extended JSON encoding. |
| #as_json | Convert the options to a Hash for ActiveSupport's JSON encoding. |
| #encode_with | Serialize the options to YAML, redacting sensitive values. |
| #init_with | Initialize options from YAML. |
| #inspect | Get a string representation of the options. |
| #marshal_dump | Dump the options for Marshal, redacting sensitive values. |
| #marshal_load | Load the options from Marshal. |
| #pretty_print | Pretty print the options, redacting sensitive values. |
| #to_extended_json | Serialize the options to Extended JSON, redacting sensitive values. |
| #to_json | Serialize the options to JSON, redacting sensitive values. |
| #to_s | Get a string representation of the options. |
| #load_serialization_envelope, #redacted_serialization_hash, #redacted_string, #redacted_value, #sensitive_key?, #serialization_envelope | |