Packages

object KeySource

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KeySource
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. 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

  2. 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

  3. 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

  1. 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