server/src/main/java/com/orientechnologies/orient/server/security/authenticator/OSystemUserAuthenticator.java
public OServerUserConfiguration getUser(final String username) {
    OServerUserConfiguration userCfg = null;

    try {
      if (getServer() != null) {
        OUser user = getServer().getSecurity().getSystemUser(username, null);

        if (user != null && user.getAccountStatus() == OSecurityUser.STATUSES.ACTIVE) {
          userCfg = new OServerUserConfiguration(user.getName(), "", "");
        }
      }
    } catch (Exception ex) {
      OLogManager.instance().error(this, "getUser()", ex);
    }

    return userCfg;
  }
public OServerUserConfiguration getUser(final String username) {
    OServerUserConfiguration userCfg = null;

    try {
      if (getServer() != null) {
        OUser user = getServer().getSecurity().getSystemUser(username, null);

        if (user != null && user.getAccountStatus() == OSecurityUser.STATUSES.ACTIVE) {
          userCfg = new OServerUserConfiguration(user.getName(), "", "");
        }
      }
    } catch (Exception ex) {
      OLogManager.instance().error(this, "getUser()", ex);
    }

    return userCfg;
  }
public OServerUserConfiguration getUser ( final String username ) { OServerUserConfiguration userCfg = null ; try { if ( getServer ( ) != null ) { OUser user = getServer ( ) . getSecurity ( ) . getSystemUser ( username , null ) ; if ( user != null && user . getAccountStatus ( ) == OSecurityUser . STATUSES . ACTIVE ) { userCfg = new OServerUserConfiguration ( user . getName ( ) , "" , "" ) ; } } } catch ( Exception ex ) { OLogManager . instance ( ) . error ( this , "getUser()" , ex ) ; } return userCfg ; }
OSecurityAuthenticator
OSecurityAuthenticator