Class

persistence.datomic.services

TokenServiceImpl

Related Doc: package services

Permalink

class TokenServiceImpl extends TokenService[TokenUser]

Linear Supertypes
TokenService[TokenUser], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TokenServiceImpl
  2. TokenService
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TokenServiceImpl(datomicService: DatomicAuthService)

    Permalink
    Annotations
    @Inject()

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. implicit val conn: Connection

    Permalink
  7. def consume(id: UUID): Unit

    Permalink

    Consumes a token.

    Consumes a token.

    This method makes the token unavailable for further use. It's up to the implementation how to do that. For example, the token can be deleted, updated as "consumed", moved to another table, etc.

    Consumed tokens can't be retrieved.

    id

    The ID of the token to consume.

    Definition Classes
    TokenServiceImplTokenService
  8. def create(token: TokenUser): Future[Option[TokenUser]]

    Permalink

    Creates a new token.

    Creates a new token.

    The new token will be persisted so that later it can be retrieved by its ID.

    token

    The token to create.

    returns

    The created token or None if the token couldn't be created.

    Definition Classes
    TokenServiceImplTokenService
  9. val e: Connection

    Permalink
    Attributes
    protected[this]
  10. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def retrieve(id: UUID): Future[Option[TokenUser]]

    Permalink

    Retrieves an available token.

    Retrieves an available token.

    id

    The token ID.

    returns

    The retrieved token or None if no token could be retrieved for the given ID.

    Definition Classes
    TokenServiceImplTokenService
  20. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from TokenService[TokenUser]

Inherited from AnyRef

Inherited from Any

Ungrouped