com.softwaremill.session

SessionDirectives

Related Docs: object SessionDirectives | package session

trait SessionDirectives extends ClientSessionDirectives with CsrfDirectives with RememberMeDirectives

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SessionDirectives
  2. RememberMeDirectives
  3. CsrfDirectives
  4. ClientSessionDirectives
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def csrfTokenFromCookie[T](magnet: CsrfManagerMagnet[T, CsrfCheckMode]): Directive1[Option[String]]

    Definition Classes
    CsrfDirectives
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  12. def invalidatePersistentSession[T](magnet: RememberMeStorageMagnet[T, Unit]): Directive0

    Same as ClientSessionDirectives.invalidateSession), but also removes the remember me cookie and the remember me token (from the client and token store).

    Same as ClientSessionDirectives.invalidateSession), but also removes the remember me cookie and the remember me token (from the client and token store).

    Definition Classes
    RememberMeDirectives
  13. def invalidateSession[T](magnet: ClientSessionManagerMagnet[T, Unit]): Directive0

    Invalidate the session cookie

    Invalidate the session cookie

    Definition Classes
    ClientSessionDirectives
  14. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  18. def optionalPersistentSession[T](magnet: RememberMeStorageMagnet[T, Unit]): Directive1[Option[T]]

    Same as ClientSessionDirectives.optionalSession, but also tries to create a new session based on the remember me cookie, if no session is present.

    Same as ClientSessionDirectives.optionalSession, but also tries to create a new session based on the remember me cookie, if no session is present.

    Definition Classes
    RememberMeDirectives
  19. def optionalSession[T](magnet: ClientSessionManagerMagnet[T, Unit]): Directive1[Option[T]]

    Read an optional session from the session cookie.

    Read an optional session from the session cookie.

    Definition Classes
    ClientSessionDirectives
  20. def randomTokenCsrfProtection[T](magnet: CsrfManagerMagnet[T, CsrfCheckMode]): Directive0

    Protects against CSRF attacks using a double-submit cookie.

    Protects against CSRF attacks using a double-submit cookie. The cookie will be set on any GET request which doesn't have the token set in the header. For all other requests, the value of the token from the CSRF cookie must match the value in the custom header (or request body, if checkFormBody is true).

    Note that this scheme can be broken when not all subdomains are protected or not using HTTPS and secure cookies, and the token is placed in the request body (not in the header).

    See the documentation for more details.

    Definition Classes
    CsrfDirectives
  21. def requiredPersistentSession[T](magnet: RememberMeStorageMagnet[T, Unit]): Directive1[T]

    Same as ClientSessionDirectives.requiredSession, but also tries to create a new session based on the remember me cookie, if no session is present.

    Same as ClientSessionDirectives.requiredSession, but also tries to create a new session based on the remember me cookie, if no session is present.

    Definition Classes
    RememberMeDirectives
  22. def requiredSession[T](magnet: ClientSessionManagerMagnet[T, Unit]): Directive1[T]

    Read a required session from the session cookie.

    Read a required session from the session cookie.

    Definition Classes
    ClientSessionDirectives
  23. def setNewCsrfToken[T](magnet: CsrfManagerMagnet[T, Unit]): Directive0

    Definition Classes
    CsrfDirectives
  24. def setPersistentSession[T](magnet: RememberMeStorageMagnet[T, T]): Directive0

    Same as ClientSessionDirectives.setSession, plus also generates a new remember me token (removing old ones) and stores it in the remember me cookie.

    Same as ClientSessionDirectives.setSession, plus also generates a new remember me token (removing old ones) and stores it in the remember me cookie.

    Definition Classes
    RememberMeDirectives
  25. def setRememberMeCookie[T](magnet: RememberMeStorageMagnet[T, T]): Directive0

    Definition Classes
    RememberMeDirectives
  26. def setSession[T](magnet: ClientSessionManagerMagnet[T, T]): Directive0

    Set the session cookie with the session content.

    Set the session cookie with the session content. The content is signed, optionally encrypted and with an optional expiry date.

    Definition Classes
    ClientSessionDirectives
  27. def submittedCsrfToken[T](magnet: CsrfManagerMagnet[T, CsrfCheckMode]): Directive1[String]

    Definition Classes
    CsrfDirectives
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. def touchOptionalPersistentSession[T](magnet: RememberMeStorageMagnet[T, Unit]): Directive1[Option[T]]

    Same as ClientSessionDirectives.touchOptionalSession; if the user session is already present, keeps the same remember me token if one is present.

    Same as ClientSessionDirectives.touchOptionalSession; if the user session is already present, keeps the same remember me token if one is present.

    Definition Classes
    RememberMeDirectives
  31. def touchOptionalSession[T](magnet: ClientSessionManagerMagnet[T, Unit]): Directive1[Option[T]]

    Sets the session cookie again with the same data.

    Sets the session cookie again with the same data. Useful when using the SessionConfig.clientSessionMaxAgeSeconds option, as it sets the expiry date anew.

    Definition Classes
    ClientSessionDirectives
  32. def touchRequiredPersistentSession[T](magnet: RememberMeStorageMagnet[T, Unit]): Directive1[T]

    Same as ClientSessionDirectives.touchRequiredSession; if the user session is already present, keeps the same remember me token if one is present.

    Same as ClientSessionDirectives.touchRequiredSession; if the user session is already present, keeps the same remember me token if one is present.

    Definition Classes
    RememberMeDirectives
  33. def touchRequiredSession[T](magnet: ClientSessionManagerMagnet[T, Unit]): Directive1[T]

    Sets the session cookie again with the same data.

    Sets the session cookie again with the same data. Useful when using the SessionConfig.clientSessionMaxAgeSeconds option, as it sets the expiry date anew.

    Definition Classes
    ClientSessionDirectives
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from RememberMeDirectives

Inherited from CsrfDirectives

Inherited from ClientSessionDirectives

Inherited from AnyRef

Inherited from Any

Ungrouped