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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. val HmacSha1: String

  5. val HmacSha256: String

  6. val MacAlgorithms: Map[String, String]

  7. final def asInstanceOf[T0]: T0

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

  9. val charset: String

  10. def clone(): AnyRef

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

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

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

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

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

    returns

    Either[String error, String hashed value]

  16. def hashCode(): Int

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

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

    returns

    Either[String error, String hashed value]

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

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

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

    Definition Classes
    AnyRef
  22. 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

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

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

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

    returns

    Either[String error, String mac signed req]

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

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

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped