Trait

securesocial.core.authenticator

StoreBackedAuthenticator

Related Doc: package authenticator

Permalink

trait StoreBackedAuthenticator[U, T <: Authenticator[U]] extends Authenticator[U]

Base trait for the Cookie and Http Header based authenticators

U

the user object type

T

the authenticator type

Linear Supertypes
Authenticator[U], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StoreBackedAuthenticator
  2. Authenticator
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val absoluteTimeoutInSeconds: Int

    Permalink

    The time an authenticator is allowed to live in the store

  2. abstract val creationDate: DateTime

    Permalink

    The creation time

    The creation time

    Definition Classes
    Authenticator
  3. abstract val expirationDate: DateTime

    Permalink

    The expiration date

    The expiration date

    Definition Classes
    Authenticator
  4. abstract val id: String

    Permalink

    An id for this authenticator

    An id for this authenticator

    Definition Classes
    Authenticator
  5. abstract val idleTimeoutInMinutes: Int

    Permalink

    The inactivity period after which an authenticator is considered invalid

  6. abstract val lastUsed: DateTime

    Permalink

    The last used time

    The last used time

    Definition Classes
    Authenticator
  7. abstract def starting(result: Result): Future[Result]

    Permalink

    Starts an authenticator session.

    Starts an authenticator session. This is invoked when the user logs in.

    result

    the result that is about to be sent to the client

    returns

    the result modified to signal a new session has been created.

    Definition Classes
    Authenticator
  8. abstract val store: AuthenticatorStore[T]

    Permalink
    Annotations
    @transient()
  9. abstract val user: U

    Permalink

    The user this authenticator represents

    The user this authenticator represents

    Definition Classes
    Authenticator
  10. abstract def withLastUsedTime(time: DateTime): T

    Permalink

    Returns a copy of this authenticator with the given last used time

    Returns a copy of this authenticator with the given last used time

    time

    the new time

    returns

    the modified authenticator

  11. abstract def withUser(user: U): T

    Permalink

    Returns a copy of this Authenticator with the given user

    Returns a copy of this Authenticator with the given user

    user

    the new user

    returns

    the modified authenticator

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. def discarding(javaContext: Context): Future[Unit]

    Permalink

    Ends an authenticator session.

    Ends an authenticator session. This is invoked when the authenticator becomes invalid (for Java actions)

    javaContext

    the current http context

    returns

    the current http context modified to signal the authenticator is no longer valid

    Definition Classes
    StoreBackedAuthenticatorAuthenticator
  7. def discarding(result: Result): Future[Result]

    Permalink

    Ends an authenticator session.

    Ends an authenticator session. This is invoked when the user logs out or if the authenticator becomes invalid (maybe due to a timeout)

    result

    the result that is about to be sent to the client.

    returns

    the result modified to signal the authenticator is no longer valid

    Definition Classes
    StoreBackedAuthenticatorAuthenticator
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. implicit val executionContext: ExecutionContext

    Permalink
  11. def expired: Boolean

    Permalink

    Checks if the authenticator has expired.

    Checks if the authenticator has expired. This is an absolute timeout since the creation of the authenticator

    returns

    true if the authenticator has expired, false otherwise.

  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. def isValid: Boolean

    Permalink

    Checks if the authenticator is valid.

    Checks if the authenticator is valid. For this implementation it means that the authenticator has not expired or timed out.

    returns

    true if the authenticator is valid, false otherwise.

    Definition Classes
    StoreBackedAuthenticatorAuthenticator
  17. val logger: Logger

    Permalink
    Attributes
    protected
  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. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def timedOut: Boolean

    Permalink

    Checks if the time elapsed since the last time the authenticator was used is longer than the maximum idle timeout specified in the properties.

    Checks if the time elapsed since the last time the authenticator was used is longer than the maximum idle timeout specified in the properties.

    returns

    true if the authenticator timed out, false otherwise.

  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. def touch: Future[T]

    Permalink

    Updated the last used timestamp

    Updated the last used timestamp

    returns

    a future with the updated authenticator

    Definition Classes
    StoreBackedAuthenticatorAuthenticator
  25. def touching(javaContext: Context): Future[Unit]

    Permalink

    Adds a touched authenticator to the result(for Java).

    Adds a touched authenticator to the result(for Java). In this implementation there's no need to do anything with the result

    javaContext

    the current invocation context

    returns

    the http context modified with the updated authenticator

    Definition Classes
    StoreBackedAuthenticatorAuthenticator
  26. def touching(result: Result): Future[Result]

    Permalink

    Adds a touched authenticator to the result (for Scala).

    Adds a touched authenticator to the result (for Scala). In this implementation there's no need to do anything with the result

    Definition Classes
    StoreBackedAuthenticatorAuthenticator
  27. def updateUser(user: U): Future[T]

    Permalink

    Updates the user information associated with this authenticator

    Updates the user information associated with this authenticator

    user

    the user object

    returns

    a future with the updated authenticator

    Definition Classes
    StoreBackedAuthenticatorAuthenticator
  28. final def wait(): Unit

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

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

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

Inherited from Authenticator[U]

Inherited from AnyRef

Inherited from Any

Ungrouped