Packages

object AuthCodecs

Source
AuthCodecs.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AuthCodecs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. implicit val tokenVersion: Codec[TokenVersion]
  2. def versioned[A](currentVersion: TokenVersion)(f: PartialFunction[TokenVersion, Codec[A]]): Codec[A]

    Create a Codec that has a version-dependent decoder.

    Create a Codec that has a version-dependent decoder.

    currentVersion

    the current token version. This version number will be encoded and prepended to the serialized token.

    f

    a partial function matching on the supported token versions. If an unsupported token version is encountered, it will trigger an appropriate UnsupportedTokenVersion decoding failure.