package config
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- sealed trait Instances extends AnyRef
- final class Secret[T] extends AnyRef
The
Secretclass represent a secret value of typeT.The
Secretclass represent a secret value of typeT.The value is implicitly offuscated when creating the
Secretinstance using an implicitOffuserinstance which, by default, transform the value into a shuffledArray[Byte].The offuscated value is de-offuscated using an implicit
DeOffuserinstance every time the methoduseis invoked which returns the original value un-shuffling the bytes and converting them back toT.Example
val secretString: Secret[String] = Secret("my_password") val secretValue: Either[NoLongerValidSecret, String] = secretString.use