Class/Object

com.mohiva.play.silhouette.impl.providers.oauth2.state

CookieState

Related Docs: object CookieState | package state

Permalink

case class CookieState(expirationDate: DateTime, value: String) extends OAuth2State with Product with Serializable

A state which gets persisted in a cookie.

This is to prevent the client for CSRF attacks as described in the OAuth2 RFC.

expirationDate

The expiration time.

value

A value that binds the request to the user-agent's authenticated state.

See also

https://tools.ietf.org/html/rfc6749#section-10.12

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CookieState
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. OAuth2State
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CookieState(expirationDate: DateTime, value: String)

    Permalink

    expirationDate

    The expiration time.

    value

    A value that binds the request to the user-agent's authenticated state.

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. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. val expirationDate: DateTime

    Permalink

    The expiration time.

  8. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def isExpired: Boolean

    Permalink

    Checks if the state is expired.

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

    returns

    True if the state is expired, false otherwise.

    Definition Classes
    CookieStateOAuth2State
  11. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def serialize: String

    Permalink

    Returns a serialized value of the state.

    Returns a serialized value of the state.

    returns

    A serialized value of the state.

    Definition Classes
    CookieStateOAuth2State
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. val value: String

    Permalink

    A value that binds the request to the user-agent's authenticated state.

  18. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from OAuth2State

Inherited from AnyRef

Inherited from Any

Ungrouped