AuthToken

tsec.authentication.AuthToken
trait AuthToken[A]

Authenticators represent something similar to a Token: Some piece of Id that you can use to identify a user with. The only thing all authenticators have in common is that they all have some eventual expiry date, as well as _possibly_ a lastTouched date.

An Authenticator can be a bearer token, a JWT, an encrypted cookie or a signed cookie in TSec.

Attributes

Source
AuthToken.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def expiry(a: A): Instant

Attributes

Source
AuthToken.scala
def lastTouched(a: A): Option[Instant]

Attributes

Source
AuthToken.scala

Concrete methods

def isExpired(a: A, now: Instant): Boolean

Attributes

Source
AuthToken.scala
def isTimedOut(a: A, now: Instant, timeOut: FiniteDuration): Boolean

Attributes

Source
AuthToken.scala