MaskedMetadata

data class MaskedMetadata(val key: String, val value: String) : Metadata(source)

Represents metadata with masked value.

This class extends the abstract class Metadata and provides a masked representation for the value of the metadata. The mask function used is SHA256 hashing.

Constructors

Link copied to clipboard
constructor(key: String, value: String)

Creates an instance of MaskedMetadata.

Properties

Link copied to clipboard
val key: String

The key of the metadata.

Link copied to clipboard

The value of the metadata.

Functions

Link copied to clipboard
fun getValue(level: LogLevel): String

Returns the value associated with the given LogLevel.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object. In this case, it returns the value of the metadata.