Skip to content

Sensitive[A: Stringable val]

[Source]

Wraps a sensitive value so that printing it gives [REDACTED] and reading the value takes a deliberate call.

class val Sensitive[A: Stringable val]

Constructors

create

[Source]

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

Parameters

  • value: A

Returns


Public Functions

expose

[Source]

The wrapped value. Every use of a sensitive value goes through this, so a search for expose finds them all.

fun box expose()
: A

Returns

  • A

string

[Source]

"[REDACTED]", whatever the wrapped value is.

fun box string()
: String iso^

Returns