KeySource

object KeySource
Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

final case class FromBase64(base64: String) extends KeySource

Key loaded from a Base64 string

Key loaded from a Base64 string

Value Params
base64

base64 encoded key value

final case class FromFile(path: Path) extends KeySource

Key loaded from an external file

Key loaded from an external file

Value Params
path

path of the file

final case class FromString(value: String) extends KeySource

Key loaded from a raw string

Key loaded from a raw string

Value Params
value

key as a simple string

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

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.

Value Params
maybeBase64

Base64 encoded key value

maybePath

Path to the key file if any