unfiltered.mac

Signing

trait Signing extends AnyRef

MAC request signing as defined by http://tools.ietf.org/html/draft-hammer-oauth-v2-mac-token-05 The MAC protocol defines

  1. MAC key identifier (access token value) 2. MAC key (access token secret) 3. MAC algorithm - one of ("hmac-sha-1" or "hmac-sha-256") 4. Issue time - time when credentials were issued to calculate the age
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Signing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val HmacSha1: String

  7. val HmacSha256: String

  8. val MacAlgorithms: Map[String, String]

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def bodyhash(body: Array[Byte])(alg: String): Product with Serializable with Either[String, String]

  11. val charset: String

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hash(data: Array[Byte])(algo: String): Product with Serializable with Either[String, Array[Byte]]

    returns

    Either[String error, String hashed value]

  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def macHash(alg: String, key: String)(body: String): Product with Serializable with Either[String, String]

    returns

    Either[String error, String hashed value]

  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def requestString(nonce: String, method: String, uri: String, hostname: String, port: Int, bodyhash: String, ext: String): String

    calculates the normalized request string from parts of a request

  25. def requestString[T](r: HttpRequest[T], alg: String, nonce: String, ext: Option[String], bodyHash: Option[String]): Either[String, String]

    calculates the normalized the request string from a request

  26. implicit def s2b(s: String): Array[Byte]

  27. def sign(key: String, request: String, alg: String): Either[String, String]

    returns

    Either[String error, String mac signed req]

  28. def sign[T](r: HttpRequest[T], nonce: String, ext: Option[String], bodyHash: Option[String], key: String, alg: String): Either[String, String]

    returns

    signed request for a given key, request, and algorithm

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped