OneShotSecret

com.geirolz.secret.OneShotSecret
See theOneShotSecret companion class
object OneShotSecret

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def apply[T](value: => T, collectDestructionLocation: Boolean)(using strategy: SecretStrategy[T], hasher: Hasher): OneShotSecret[T]

Create a new OneShotSecret with the specified value.

Create a new OneShotSecret with the specified value.

Value parameters

collectDestructionLocation

if true the location where the secret was destroyed will be collected

value

the value to obfuscate

Attributes

Returns

a new OneShotSecret

Definition Classes
SecretCompanionApi
override def destroyed[T](location: Location): OneShotSecret[T]

Create a destroyed secret

Create a destroyed secret

Attributes

Definition Classes
SecretCompanionApi

Inherited methods

def fromEnv[F[_] : SysEnv](name: String)(implicit evidence$1: MonadThrow[F], evidence$2: SysEnv[F], SecretStrategy[String], Hasher): F[OneShotSecret[String]]

Create a secret from the environment variable.

Create a secret from the environment variable.

Attributes

Inherited from:
SecretCompanionApi (hidden)
def noLocation[T : SecretStrategy](value: => T)(implicit evidence$1: SecretStrategy[T], Hasher): OneShotSecret[T]

Create a new secret with the given value without collecting the destruction location

Create a new secret with the given value without collecting the destruction location

Attributes

Inherited from:
SecretCompanionApi (hidden)
def plain(value: String)(using Hasher): OneShotSecret[String]

Create a plain secret from the given value.

Create a plain secret from the given value.

Attributes

Inherited from:
SecretCompanionApi (hidden)

Inherited fields

final val empty: OneShotSecret[String]

Create an string empty secret

Create an string empty secret

Attributes

Inherited from:
SecretCompanionApi (hidden)

Givens

Inherited givens

Attributes

Inherited from:
SecretApiInstances (hidden)
given given_Hashing_SecretTpe[T]: Hashing[OneShotSecret[T]]

Attributes

Inherited from:
SecretApiInstances (hidden)
given given_Show_SecretTpe[T]: Show[OneShotSecret[T]]

Attributes

Inherited from:
SecretApiInstances (hidden)

Extensions

Inherited extensions

extension [L, T](eSecret: Either[L, OneShotSecret[T]])(implicit evidence$1: SecretStrategy[T], evidence$2: Monoid[T], Hasher)

Attributes

Inherited from:
SecretApiSyntax (hidden)
extension [T](optSecret: Option[OneShotSecret[T]])(implicit evidence$1: SecretStrategy[T], evidence$2: Monoid[T], Hasher)

Attributes

Inherited from:
SecretApiSyntax (hidden)