class CSRFActionHelper extends AnyRef
- Source
- CSRFActions.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CSRFActionHelper
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new CSRFActionHelper(sessionConfiguration: SessionConfiguration, csrfConfig: CSRFConfig, tokenSigner: CSRFTokenSigner)
Construct a new CSRFActionHelper and determine the TokenProvider from configuration.
- new CSRFActionHelper(sessionConfiguration: SessionConfiguration, csrfConfig: CSRFConfig, tokenSigner: CSRFTokenSigner, tokenProvider: TokenProvider)
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
- def addTokenToResponse(request: RequestHeader, result: Result): Result
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearTokenIfInvalid(request: RequestHeader, errorHandler: ErrorHandler, msg: String): Future[Result]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def generateToken: Token
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getHeaderToken(request: RequestHeader): Option[String]
- def getTokenToValidate(request: RequestHeader): Option[String]
Get the header token, that is, the token that should be validated.
- def hasInvalidContentType(request: RequestHeader): Boolean
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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)
- 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
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def requiresCsrfCheck(request: RequestHeader): Boolean
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tagRequest[A](request: Request[A], token: Token): Request[A]
- def tagRequestFromHeader[A](request: Request[A]): Request[A]
- def tagRequestFromHeader(request: RequestHeader): RequestHeader
Tag incoming requests with the token in the header
- def tagRequestHeader(request: RequestHeader, token: => Token): RequestHeader
- def tagRequestHeaderWithNewToken(request: RequestHeader): RequestHeader
- def tagRequestWithNewToken(requestBuilder: RequestBuilder): RequestBuilder
- def tagRequestWithNewToken[A](request: Request[A]): Request[A]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])