Packages

c

play.filters.csrf

CSRFActionHelper

class CSRFActionHelper extends AnyRef

Source
CSRFActions.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CSRFActionHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CSRFActionHelper(sessionConfiguration: SessionConfiguration, csrfConfig: CSRFConfig, tokenSigner: CSRFTokenSigner)

    Construct a new CSRFActionHelper and determine the TokenProvider from configuration.

  2. new CSRFActionHelper(sessionConfiguration: SessionConfiguration, csrfConfig: CSRFConfig, tokenSigner: CSRFTokenSigner, tokenProvider: TokenProvider)

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. def addTokenToResponse(request: RequestHeader, result: Result): Result
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clearTokenIfInvalid(request: RequestHeader, errorHandler: ErrorHandler, msg: String): Future[Result]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def generateToken: Token
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getHeaderToken(request: RequestHeader): Option[String]
  14. def getTokenToValidate(request: RequestHeader): Option[String]

    Get the header token, that is, the token that should be validated.

  15. def hasInvalidContentType(request: RequestHeader): Boolean
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def isCacheableBySharedCache(result: Result): Boolean

    returns

    false if Cache-Control header is absent or true if it exists but does not contain an explicit directive to prevent caching (e.g. "no-store") in shared caches (e.g. proxies)

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def requiresCsrfCheck(request: RequestHeader): Boolean
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def tagRequest[A](request: Request[A], token: Token): Request[A]
  25. def tagRequestFromHeader[A](request: Request[A]): Request[A]
  26. def tagRequestFromHeader(request: RequestHeader): RequestHeader

    Tag incoming requests with the token in the header

  27. def tagRequestHeader(request: RequestHeader, token: => Token): RequestHeader
  28. def tagRequestHeaderWithNewToken(request: RequestHeader): RequestHeader
  29. def tagRequestWithNewToken(requestBuilder: RequestBuilder): RequestBuilder
  30. def tagRequestWithNewToken[A](request: Request[A]): Request[A]
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def isCached(result: Result): Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) Renamed to isCacheableBySharedCache

Inherited from AnyRef

Inherited from Any

Ungrouped