object KeySource
- Alphabetic
- By Inheritance
- KeySource
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
FromBase64(base64: String) extends KeySource with Product with Serializable
Key loaded from a Base64 string
Key loaded from a Base64 string
- base64
base64 encoded key value
-
final
case class
FromFile(path: Path) extends KeySource with Product with Serializable
Key loaded from an external file
Key loaded from an external file
- path
path of the file
-
final
case class
FromString(value: String) extends KeySource with Product with Serializable
Key loaded from a raw string
Key loaded from a raw string
- value
key as a simple string
Value Members
-
def
from(maybePath: Option[String], maybeBase64: Option[String]): Either[String, KeySource]
Defines a key source from either an external file path or a base64 encoded value.
Defines a key source from either an external file path or a base64 encoded value.
If neither or both are provided the result is an error.
- maybePath
Path to the key file if any
- maybeBase64
Base64 encoded key value