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

CookieState

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    expirationDate

    The expiration time.

    value

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. val expirationDate: DateTime

    The expiration time.

  10. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  12. def isExpired: Boolean

    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
  13. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  17. def serialize: String

    Returns a serialized value of the state.

    Returns a serialized value of the state.

    returns

    A serialized value of the state.

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

    Definition Classes
    AnyRef
  19. val value: String

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

  20. final def wait(): Unit

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

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

    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