code: public void sessionSetup(
              final SmbSession session, 
              final ServerMessageBlock andx, 
              final ServerMessageBlock andxResponse) throws SmbException {
          try {
              Subject.doAs(subject, new PrivilegedExceptionAction(){
                  public Object run() throws Exception{
                      setup(session, andx, andxResponse);
                      return null;
                  }
              });
          } catch (PrivilegedActionException e) {
              if (e.getException() instanceof SmbException) {
                  throw (SmbException) e.getException();
              }
              throw new SmbException(e.getMessage(), e.getException());
          }
      }
docs: /* (non-Javadoc)
  @see jcifs.smb.SmbExtendedAuthenticator#sessionSetup(jcifs.smb.SmbSession, jcifs.smb.ServerMessageBlock, jcifs.smb.ServerMessageBlock)