/** * 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; }
/** * 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()); }
/** @return the Vert.x-Web user corresponding to this socket */ public User webUser() { User ret = User.newInstance(delegate.webUser()); return ret; }