api

http4k / org.http4k.cloudnative.env / Secret

Secret

class Secret : Closeable

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)
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 destroyedSecret(input: ByteArray)

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