コード例 #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;
 }
コード例 #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());
 }
コード例 #3
0
ファイル: SockJSSocket.java プロジェクト: kjniemi/vertx-web
 /** @return the Vert.x-Web user corresponding to this socket */
 public User webUser() {
   User ret = User.newInstance(delegate.webUser());
   return ret;
 }