Skip to content

Sensitive[A: Stringable val]

[Source]

Wraps a sensitive value so it never appears in logs or string output.

.string() always returns "[REDACTED]". .expose() returns the underlying value — call it deliberately.

class val Sensitive[A: Stringable val]

Constructors

create

[Source]

new val create(
  value: A)
: Sensitive[A] val^

Parameters

  • value: A

Returns


from_env

[Source]

new val from_env(
  vars: Array[String val] val,
  name: String val)
: Sensitive[A] val^ ?

Parameters

Returns


Public Functions

expose

[Source]

fun box expose()
: A

Returns

  • A

string

[Source]

fun box string()
: String iso^

Returns