Ejemplo n.º 1
0
 /**
  * Get the authenticated user (if any). This will usually be injected by an auth handler if
  * authentication if successful.
  *
  * @return the user, or null if the current user is not authenticated.
  */
 public User user() {
   User ret = User.newInstance(this.delegate.user());
   return ret;
 }
Ejemplo n.º 2
0
 /**
  * Set the user. Usually used by auth handlers to inject a User. You will not normally call this
  * method.
  *
  * @param user the user
  */
 public void setUser(User user) {
   this.delegate.setUser((io.vertx.ext.auth.User) user.getDelegate());
 }
Ejemplo n.º 3
0
 /** @return the Vert.x-Web user corresponding to this socket */
 public User webUser() {
   User ret = User.newInstance(delegate.webUser());
   return ret;
 }