Exemplo n.º 1
0
            public bool isReloginException(BClient ignored, Exception ex, int typeId)
            {
                if (log.isDebugEnabled())
                {
                    log.debug("isReloginException(ex=" + ex + ", typeId=" + typeId);
                }
                bool ret = false;

                if (innerAuth != null)
                {
                    if (log.isDebugEnabled())
                    {
                        log.debug("innerAuth.isReloginException");
                    }
                    ret = innerAuth.isReloginException(client, ex, typeId);
                }
                else
                {
                    if (log.isDebugEnabled())
                    {
                        log.debug("transport.isReloginException");
                    }
                    ret = client.getTransport().isReloginException(ex, typeId);
                }
                if (log.isDebugEnabled())
                {
                    log.debug(")isReloginException=" + ret);
                }
                return(ret);
            }
Exemplo n.º 2
0
            public void authenticate(BClient ignored, BAsyncResult <bool> asyncResult)
            {
                if (log.isDebugEnabled())
                {
                    log.debug("authenticate(");
                }
                BAsyncResultIF <bool> outerResult = new MyNegoAsyncResult(client, asyncResult);

                if (innerAuth != null)
                {
                    if (log.isDebugEnabled())
                    {
                        log.debug("innerAuth.authenticate");
                    }
                    innerAuth.authenticate(client, BAsyncResultHelper.ToDelegate(outerResult));
                }
                else
                {
                    if (log.isDebugEnabled())
                    {
                        log.debug("return true");
                    }
                    outerResult.setAsyncResult(true, null);
                }
                if (log.isDebugEnabled())
                {
                    log.debug(")authenticate");
                }
            }
Exemplo n.º 3
0
 public void getSession(BClient ignored, int typeId, BAsyncResult <Object> asyncResult)
 {
     if (innerAuth != null)
     {
         innerAuth.getSession(client, typeId, asyncResult);
         if (log.isDebugEnabled())
         {
             log.debug("innerAuth.getSession()");
         }
     }
     else
     {
         asyncResult(null, null);
     }
 }
Exemplo n.º 4
0
 public ClientAuthentication(BClient client, BAuthentication innerAuth)
 {
     this.client    = client;
     this.innerAuth = innerAuth;
 }
Exemplo n.º 5
0
 public MyNegoAsyncResult(BClient client, BAsyncResult <bool> innerResult)
 {
     this.client      = client;
     this.innerResult = innerResult;
 }
Exemplo n.º 6
0
 public BClient createClientR(BClient client)
 {
     return(null);
 }
Exemplo n.º 7
0
 public BServer(BServer rhs)
 {
     this.transport = rhs.transport;
     this.clientR   = rhs.clientR;
     this.remotes   = rhs.remotes;
 }
Exemplo n.º 8
0
 public BServer(BTransport transport, BClient clientR)
 {
     this.transport = transport;
     this.clientR   = clientR;
     this.remotes   = new Dictionary <int, BRemote>();
 }