com.hunorkovacs.koauth.service.provider.persistence

Persistence

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
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

    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]]

    returns

    the Token Secret. If not found, a None.

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

    returns

    The callback that was registered with this Request Token.

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

    returns

    Consumer Secret associated to given Consumer Key

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

    returns

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

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

    returns

    the username associated to the token.

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

    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]

    Saves an Access Token with companion attributes.

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

    Saves a nonce associated to a Request or Access Token.

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

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

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

    returns

    The username that authorized this token, otherwise None.

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

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  18. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped