Object

atom.oauth

OAuthHelper

Related Doc: package oauth

Permalink

object OAuthHelper

Class contains util methods to work with OAuth 1.0 and 2.0.

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

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val ScOk: Int

    Permalink

    Status code (200) indicating the request succeeded normally.

  5. val Utf8: String

    Permalink

    UTF-8 encoding.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def computeSignature(method: String, url: String, params: String, keyString: String): String

    Permalink

    Method should be used to create OAuth 1.0 signature.

    Method should be used to create OAuth 1.0 signature.

    method

    the HTTP request method (e.g., "GET", "POST", etc.)

    url

    the path component of the request resource URI

    params

    the query params component of the request resource URI

    keyString

    signature key

    returns

    OAuth 1.0 signature

    Annotations
    @throws( classOf[GeneralSecurityException] ) @throws( ... )
    Exceptions thrown

    GeneralSecurityException if signature method is wrong

    UnsupportedEncodingException if the encoding is not supported

  9. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def generateOAuth10Header(apiKey: String, oauthSignature: String, nonce: String, timestamp: String, token: String*): String

    Permalink

    Generate OAuth 1.0 Header.

    Generate OAuth 1.0 Header.

    apiKey

    the identifier portion of the client credentials (equivalent to a username)

    oauthSignature

    OAuth signature

    nonce

    the Consumer SHALL then generate a Nonce value that is unique for all requests with that timestamp. A nonce is a random string, uniquely generated for each request

    timestamp

    the number of seconds since January 1, 1970 00:00:00 GMT, the timestamp value MUST be a positive integer and MUST be equal or greater than the timestamp used in previous requests

    token

    the temporary credentials identifier received from the client

    returns

    OAuth 1.0 Authorization header

    Annotations
    @throws( ... ) @throws( classOf[GeneralSecurityException] )
    Exceptions thrown

    GeneralSecurityException if signature method is wrong

    UnsupportedEncodingException if the encoding is not supported

  13. def generateOAuth10Header(apiKey: String, oauthSignature: String, token: String): String

    Permalink

    Generate OAuth 1.0 Header.

    Generate OAuth 1.0 Header.

    apiKey

    the identifier portion of the client credentials (equivalent to a username)

    oauthSignature

    OAuth signature

    token

    the temporary credentials identifier received from the client

    returns

    OAuth 1.0 Authorization header

    Annotations
    @throws( ... ) @throws( classOf[GeneralSecurityException] )
    Exceptions thrown

    GeneralSecurityException if signature method is wrong

    UnsupportedEncodingException if the encoding is not supported

  14. def generateQueryParamString(apiKey: String, oauthNonce: String, oauthTimestamp: String, oauthToken: String*): String

    Permalink

    Method should be used to create OAuth 1.0 signature.

    Method should be used to create OAuth 1.0 signature. Encoded query params are part of signature.

    apiKey

    the identifier portion of the client credentials (equivalent to a username)

    oauthNonce

    a nonce is a random string, uniquely generated by the client to allow the server to verify that a request has never been made before and helps prevent replay attacks when requests are made over a non-secure channel

    oauthTimestamp

    is expressed in the number of seconds since January 1, 1970 00:00:00 GMT

    oauthToken

    the token value used to associate the request with the resource owner

    returns

    encoded query params as a part of signature base string.

    Annotations
    @throws( ... )
    Exceptions thrown

    UnsupportedEncodingException if the encoding is not supported

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def sendHttpRequest(request: HttpRequestBase): String

    Permalink

    Execute http request and return body of response as string.

    Execute http request and return body of response as string.

    request

    http request

    returns

    string value of server response

    Annotations
    @throws( classOf[IOException] )
    Exceptions thrown

    IOException if error has occurred while executing request

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped