Secret

A secret string, such as a token or a client secret, that prints as a placeholder.

toString never shows the value, and reading it requires opting in to SecretAccess. On the JVM the value is a transient field, so reflection-based serializers skip it.

Constructors

Link copied to clipboard
constructor(value: String)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Returns the secret value.

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