Packages

p

nelson.crypto

protocol

package protocol

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

Type Members

  1. final case class AuthFailureErr(failure: AuthFailure, context: List[String] = Nil) extends Err with Product with Serializable

    An scodec Err that simply wraps an AuthFailure.

  2. abstract class ScodecTokenAuthenticator[A] extends TokenAuthenticator[String, A]

    Token authenticator that uses Scodec encoding and then base-64 encodes the result to a String token.

    Token authenticator that uses Scodec encoding and then base-64 encodes the result to a String token.

    A

    The result of successful authentication (ex: User, AccessToken)

  3. abstract class SignedCodec[A] extends Codec[A]

    A codec that delegates through to the provided target codec but prefixes the encoded value with an HMAC signature when encoding and verifies the signature when decoding.

    A codec that delegates through to the provided target codec but prefixes the encoded value with an HMAC signature when encoding and verifies the signature when decoding. This ensures that the encoded bits were not tampered with.

Value Members

  1. def authResultToAttempt[A](fa: AuthResult[A]): Attempt[A]
  2. object AuthCodecs
  3. object EncryptedCodec
  4. object ScodecTokenAuthenticator
  5. object SignedCodec

Inherited from AnyRef

Inherited from Any

Ungrouped