api

http4k / org.http4k.cloudnative.env / Secret

Secret

class Secret : Closeable (source)

A secret is a value which tries very hard not to expose itself as a string, by storing it’s value in a byte array. You can “use” the value only once, after which the value is destroyed

Constructors

Name Summary
<init> Secret(value: String)Secret(input: ByteArray)
A secret is a value which tries very hard not to expose itself as a string, by storing it’s value in a byte array. You can “use” the value only once, after which the value is destroyed

Functions

Name Summary
close fun close(): Unit
equals fun equals(other: Any?): Boolean
hashCode fun hashCode(): Int
toString fun toString(): String
use fun <T> use(fn: (String) -> T): T

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T