Package: io.vertx.groovy.ext.web.handler

## [Groovy] Class UserSessionHandler

- io.vertx.groovy.ext.web.handler.UserSessionHandler

- All Implemented Interfaces and Traits:
    io.vertx.core.Handler

      @groovy.transform.CompileStatic
      class UserSessionHandler
      extends java.lang.Object

  This handler should be used if you want to store the User object in the Session so it's available between different requests, without you having re-authenticate each time. It requires that the session handler is already present on previous matching routes. It requires an Auth provider so, if the user is deserialized from a clustered session it knows which Auth provider to associate the session with.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `UserSessionHandler (java.lang.Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `static UserSessionHandler` | `create(AuthProvider authProvider)` Create a new handler
    `java.lang.Object` | `getDelegate()`
    `void` | `handle(RoutingContext arg0)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Constructor Detail

    - #### UserSessionHandler(java.lang.Object delegate)

  - ### Method Detail

    - #### static UserSessionHandler create(AuthProvider authProvider)

      Create a new handler

      Returns:
        the handler
      Parameters:
        `authProvider` - The auth provider to use

    - #### java.lang.Object getDelegate()

    - #### void handle(RoutingContext arg0)