Trait

com.hunorkovacs.koauth.service.provider.persistence

Persistence

Related Doc: package persistence

Permalink

trait Persistence extends AnyRef

OAuth

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

Abstract Value Members

  1. abstract def deleteRequestToken(consumerKey: String, requestToken: String): Future[Unit]

    Permalink

    Deletes a Request Token, usually for deactivating one after an exchange for Access Token.

  2. abstract def getAccessTokenSecret(consumerKey: String, accessToken: String): Future[Option[String]]

    Permalink

    returns

    the Token Secret. If not found, a None.

  3. abstract def getCallback(consumerKey: String, requestToken: String): Future[Option[String]]

    Permalink

    returns

    The callback that was registered with this Request Token.

  4. abstract def getConsumerSecret(consumerKey: String): Future[Option[String]]

    Permalink

    returns

    Consumer Secret associated to given Consumer Key

  5. abstract def getRequestTokenSecret(consumerKey: String, requestToken: String): Future[Option[String]]

    Permalink

    returns

    the associated Request Token Secret if Request Token exists. Otherwise None.

  6. abstract def getUsername(consumerKey: String, accessToken: String): Future[Option[String]]

    Permalink

    returns

    the username associated to the token.

  7. abstract def nonceExists(nonce: String, consumerKey: String, token: String): Future[Boolean]

    Permalink

    Saved nonces can be deleted after a predefined time passes.

    Saved nonces can be deleted after a predefined time passes. Preferably longer or equal to the amount the timestamp verification is tuned to. Delete function is not defined in this trait, as it's not crucial for this library to work. But you could and should clean up nonces once in a while.

    returns

    true if the nonce already exists for the given Consumer Key and Token

  8. abstract def persistAccessToken(consumerKey: String, accessToken: String, accessTokenSecret: String, username: String): Future[Unit]

    Permalink

    Saves an Access Token with companion attributes.

  9. abstract def persistNonce(nonce: String, consumerKey: String, token: String): Future[Unit]

    Permalink

    Saves a nonce associated to a Request or Access Token.

  10. abstract def persistRequestToken(consumerKey: String, requestToken: String, requestTokenSecret: String, callback: String): Future[Unit]

    Permalink

    Save a Request Token with void verifier username and verifier key.

  11. abstract def whoAuthorizedRequestToken(consumerKey: String, requestToken: String, verifier: String): Future[Option[String]]

    Permalink

    returns

    The username that authorized this token, otherwise None.

Concrete 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. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped