com.mohiva.play.silhouette.api.Silhouette

SecuredRequestHandler

object SecuredRequestHandler extends SecuredRequestHandlerBuilder

A secured request handler.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SecuredRequestHandler
  2. SecuredRequestHandlerBuilder
  3. RequestHandlerBuilder
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. def apply(authorize: Authorization[I]): SecuredRequestHandlerBuilder

    Creates a secured action handler.

    Creates a secured action handler.

    authorize

    An Authorize object that checks if the user is authorized to invoke the action.

    returns

    A secured action handler.

  7. final def apply[B, T](request: Request[B])(block: (SecuredRequest[B]) ⇒ Future[HandlerResult[T]]): Future[HandlerResult[T]]

    Constructs a request handler with the content of the given request.

    Constructs a request handler with the content of the given request.

    B

    The type of the request body.

    T

    The type of the data included in the handler result.

    request

    The current request.

    block

    The block of code to invoke.

    returns

    A handler result.

    Definition Classes
    RequestHandlerBuilder
  8. final def apply[T](block: (SecuredRequest[AnyContent]) ⇒ Future[HandlerResult[T]])(implicit request: Request[AnyContent]): Future[HandlerResult[T]]

    Constructs a request handler with default content.

    Constructs a request handler with default content.

    T

    The type of the data included in the handler result.

    block

    The block of code to invoke.

    request

    The current request.

    returns

    A handler result.

    Definition Classes
    RequestHandlerBuilder
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. def handleAuthentication[B](implicit request: Request[B]): Future[(Option[Either[A, A]], Option[I])]

    Handles the authentication of an identity.

    Handles the authentication of an identity.

    As first it checks for authenticators in requests, then it tries to authenticate against a request provider. This method marks the returned authenticators by returning already initialized authenticators on the left and new authenticators on the right. All new authenticators must be initialized later in the flow, with the result returned from the invoked block.

    B

    The type of the request body.

    request

    The current request.

    returns

    A tuple which consists of (maybe the existing authenticator on the left or a new authenticator on the right -> maybe the identity).

    Attributes
    protected
    Definition Classes
    RequestHandlerBuilder
  16. def handleBlock[T](authenticator: Either[A, A], block: (A) ⇒ Future[HandlerResult[T]])(implicit request: RequestHeader): Future[HandlerResult[T]]

    Handles a block for an authenticator.

    Handles a block for an authenticator.

    Invokes the block with the authenticator and handles the result. See handleInitializedAuthenticator and handleUninitializedAuthenticator methods too see how the different authenticator types will be handled.

    authenticator

    An already initialized authenticator on the left and a new authenticator on the right.

    block

    The block to handle with the authenticator.

    request

    The current request header.

    returns

    A handler result.

    Attributes
    protected
    Definition Classes
    RequestHandlerBuilder
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. def invokeBlock[B, T](block: (SecuredRequest[B]) ⇒ Future[HandlerResult[T]])(implicit request: Request[B]): Future[HandlerResult[T]]

    Invokes the block.

    Invokes the block.

    B

    The type of the request body.

    T

    The type of the data included in the handler result.

    block

    The block of code to invoke.

    request

    The current request.

    returns

    A handler result.

    Attributes
    protected
    Definition Classes
    SecuredRequestHandlerBuilderRequestHandlerBuilder
  19. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped