object SessionDirectives extends SessionDirectives
- Alphabetic
- By Inheritance
- SessionDirectives
- SessionDirectives
- RefreshableSessionDirectives
- OneOffSessionDirectives
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
invalidateSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive0
Invalidate the session cookie.
Invalidate the session cookie.
If refreshable, also removes the refresh token cookie and the refresh token token (from the client and token store), if present.
Note that you should use
refreshable
if you use refreshable systems even only for some users.- Definition Classes
- SessionDirectives
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
optionalSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[Option[T]]
Read an optional session from the session cookie.
Read an optional session from the session cookie.
- Definition Classes
- SessionDirectives
-
def
requiredSession[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[T]
Read a required session from the session cookie.
Read a required session from the session cookie.
- Definition Classes
- SessionDirectives
-
def
session[T](sc: SessionContinuity[T], st: GetSessionTransport): Directive1[SessionResult[T]]
Read a session from the session cookie, wrapped in SessionResult describing the possible success/failure outcomes.
Read a session from the session cookie, wrapped in SessionResult describing the possible success/failure outcomes.
If refreshable, tries to create a new session based on the refresh token cookie.
- Definition Classes
- SessionDirectives
-
def
setSession[T](sc: SessionContinuity[T], st: SetSessionTransport, v: 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.
If refreshable, generates a new token (removing old ones) and stores it in the refresh token cookie.
- Definition Classes
- SessionDirectives
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
touchOptionalSession[T](sc: SessionContinuity[T], st: GetSessionTransport): 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.sessionMaxAgeSeconds option, as it sets the expiry date anew.
- Definition Classes
- SessionDirectives
-
def
touchRequiredSession[T](sc: SessionContinuity[T], st: GetSessionTransport): 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.sessionMaxAgeSeconds option, as it sets the expiry date anew.
- Definition Classes
- SessionDirectives
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated