Class

com.nappin.play.recaptcha

NonceActionBuilder

Related Doc: package recaptcha

Permalink

class NonceActionBuilder extends ActionBuilderImpl[AnyContent]

Custom action builder to handle Content Security Policy (CSP) Nonces (Numbers used once).

Linear Supertypes
ActionBuilderImpl[AnyContent], ActionBuilder[Request, AnyContent], ActionFunction[Request, Request], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NonceActionBuilder
  2. ActionBuilderImpl
  3. ActionBuilder
  4. ActionFunction
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NonceActionBuilder(settings: RecaptchaSettings, nonceGenerator: NonceGenerator, parser: Default)(implicit ec: ExecutionContext)

    Permalink

    settings

    Recaptcha configuration settings

    nonceGenerator

    The nonce generator

    parser

    The body parser to use

    Annotations
    @Inject()

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. def andThen[Q[_]](other: ActionFunction[Request, Q]): ActionBuilder[Q, AnyContent]

    Permalink
    Definition Classes
    ActionBuilder → ActionFunction
  5. def apply[A](action: Action[A]): Action[A]

    Permalink

    Allows composition with other ActionBuilder's.

    Allows composition with other ActionBuilder's.

    A

    The request content type

    action

    The action

    returns

    The composed action

  6. final def apply(block: ⇒ Result): Action[AnyContent]

    Permalink
    Definition Classes
    ActionBuilder
  7. final def apply(block: (Request[AnyContent]) ⇒ Result): Action[AnyContent]

    Permalink
    Definition Classes
    ActionBuilder
  8. final def apply[A](bodyParser: BodyParser[A]): ActionBuilder[Request, A]

    Permalink
    Definition Classes
    ActionBuilder
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. final def async[A](bodyParser: BodyParser[A])(block: (Request[A]) ⇒ Future[Result]): Action[A]

    Permalink
    Definition Classes
    ActionBuilder
  11. final def async(block: (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]

    Permalink
    Definition Classes
    ActionBuilder
  12. final def async(block: ⇒ Future[Result]): Action[AnyContent]

    Permalink
    Definition Classes
    ActionBuilder
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def compose[B](other: ActionBuilder[Request, B]): ActionBuilder[Request, B]

    Permalink
    Definition Classes
    ActionFunction
  15. def compose[Q[_]](other: ActionFunction[Q, Request]): ActionFunction[Q, Request]

    Permalink
    Definition Classes
    ActionFunction
  16. def composeAction[A](action: Action[A]): Action[A]

    Permalink
    Attributes
    protected
    Definition Classes
    ActionBuilder
  17. def composeParser[A](bodyParser: BodyParser[A]): BodyParser[A]

    Permalink
    Attributes
    protected
    Definition Classes
    ActionBuilder
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. implicit val executionContext: ExecutionContext

    Permalink
    Definition Classes
    ActionBuilderImpl → ActionFunction
  21. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def invokeBlock[A](request: Request[A], block: (Request[A]) ⇒ Future[Result]): Future[Result]

    Permalink

    Adds a generated nonce to the request (as a request attribute), and adds a corresponding policy to the response.

    Adds a generated nonce to the request (as a request attribute), and adds a corresponding policy to the response.

    A

    The request content type

    request

    The current request

    block

    The action to execute

    returns

    The result

    Definition Classes
    NonceActionBuilder → ActionBuilderImpl → ActionFunction
  25. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  29. val parser: BodyParser[AnyContent]

    Permalink

    The body parser to use

    The body parser to use

    Definition Classes
    ActionBuilderImpl → ActionBuilder
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

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

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

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

Inherited from ActionBuilderImpl[AnyContent]

Inherited from ActionBuilder[Request, AnyContent]

Inherited from ActionFunction[Request, Request]

Inherited from AnyRef

Inherited from Any

Ungrouped