Package com.caucho.bam

Examples of com.caucho.bam.BamException


                       String to,
                       String from,
                       Serializable query)
  {
    if (! _lifecycle.isActive()) {
      BamException exn = new RemoteConnectionFailedException(L.l("{0} is closed",
                                                                 this));
      exn.fillInStackTrace();
     
      getBroker().queryError(id, from, to, query,
                             BamError.create(exn));
      return;
    }
View Full Code Here


             && String.class.equals(paramTypes[2])
             && Serializable.class.isAssignableFrom(paramTypes[3])) {
      return paramTypes[3];
    }
    else {
      throw new BamException(method + " is an invalid "
                             + " @" + annotationType.getSimpleName()
                             + " because queries require (long, String, String, MyPayload)");
    }
  }
View Full Code Here

        || ! long.class.equals(paramTypes[0])
        || ! String.class.equals(paramTypes[1])
        || ! String.class.equals(paramTypes[2])
        || ! Serializable.class.isAssignableFrom(paramTypes[3])
        || ! BamError.class.isAssignableFrom(paramTypes[4])) {
      throw new BamException(method + " is an invalid "
                             + " @" + annotationType.getSimpleName()
                             + " because queries require (long, String, String, MyPayload, ActorError)");
    }
    /*
    else if (! void.class.equals(method.getReturnType())) {
View Full Code Here

                                                 password);

        if (testSignature.equals(serverSignature)) {
        }
        else if ("".equals(uid)) {
          throw new BamException(L.l("{0} resin-system-auth-key does not match the server's value",
                                      this));
        }

        String signature = _authManager.sign(serverAlgorithm,
                                             uid,
View Full Code Here

        String serverSignature = nonceResult.getSignature();
       
        String testSignature = _authManager.sign(algorithm, uid, clientNonce, password);
       
        if (! testSignature.equals(serverSignature) && "".equals(uid))
          throw new BamException(L.l("{0} server signature does not match",
                                      this));

        String signature = _authManager.sign(algorithm, uid, serverNonce, password);

        SecurityService security = SecurityService.getCurrent();
View Full Code Here

      out.write(1);
      boolean isAdmin = true;
      out.write(isAdmin ? 1 : 0);
      out.flush();
    } catch (IOException e) {
      throw new BamException(e);
    }
   
  }
View Full Code Here

TOP

Related Classes of com.caucho.bam.BamException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.