Package javax.management.remote.message

Examples of javax.management.remote.message.SASLMessage


                saslClnt.hasInitialResponse() ?
                saslClnt.evaluateChallenge(EMPTY) :
                EMPTY;
            initialResponse = false;
        }
        SASLMessage response =
            new SASLMessage(mechanism, SASLMessage.CONTINUE, blob);
  if (logger.traceOn()) {
      logger.trace("produceMessage",
       ">>>>> SASL client message <<<<<");
      logger.trace("produceMessage",
       "Profile Name : " + response.getProfileName());
      logger.trace("produceMessage",
       "Status : " + response.getStatus());
  }
        return response;
    }
View Full Code Here


    public void consumeMessage(ProfileMessage pm) throws IOException {
        if (!(pm instanceof SASLMessage)) {
            throw new IOException("Unexpected profile message type: " +
                                  pm.getClass().getName());
        }
        SASLMessage challenge = (SASLMessage) pm;
  if (logger.traceOn()) {
      logger.trace("consumeMessage",
       ">>>>> SASL server message <<<<<");
      logger.trace("consumeMessage",
       "Profile Name : " + challenge.getProfileName());
      logger.trace("consumeMessage",
       "Status : " + challenge.getStatus());
  }
        if (challenge.getStatus() != SASLMessage.CONTINUE &&
            challenge.getStatus() != SASLMessage.COMPLETE) {
            throw new IOException("Unexpected SASL status [" +
                                  challenge.getStatus() + "]");
        }
        if (saslClnt.isComplete() &&
      challenge.getStatus() == SASLMessage.COMPLETE) {
      completed = true;
      return;
  }
        if (saslClnt.isComplete() &&
      challenge.getStatus() != SASLMessage.COMPLETE) {
      throw new IOException("SASL authentication complete despite " +
          "the server claim for non-completion");
  }
        if (!saslClnt.isComplete() &&
      challenge.getStatus() == SASLMessage.COMPLETE) {
            blob = saslClnt.evaluateChallenge(challenge.getBlob());
      if (saslClnt.isComplete()) {
    completed = true;
    return;
      } else {
                throw new IOException("SASL authentication not complete " +
                                      "despite the server claim for " +
                                      "completion");
      }
  }
        if (!saslClnt.isComplete() &&
      challenge.getStatus() != SASLMessage.COMPLETE) {
            blob = saslClnt.evaluateChallenge(challenge.getBlob());
  }
    }
View Full Code Here

    public void consumeMessage(ProfileMessage pm) throws IOException {
        if (!(pm instanceof SASLMessage)) {
            throw new IOException("Unexpected profile message type: " +
                                  pm.getClass().getName());
        }
        SASLMessage response = (SASLMessage) pm;
  if (logger.traceOn()) {
      logger.trace("consumeMessage",
       ">>>>> SASL client message <<<<<");
      logger.trace("consumeMessage",
       "Profile Name : " + response.getProfileName());
      logger.trace("consumeMessage",
       "Status : " + response.getStatus());
  }
        if (response.getStatus() != SASLMessage.CONTINUE) {
            throw new IOException("Unexpected SASL status [" +
                                  response.getStatus() + "]");
        }
  if (!saslServer.isComplete()) {
      blob = saslServer.evaluateResponse(response.getBlob());
  } else {
      throw new IOException("SASL authentication complete despite " +
          "the client claim for non-completion");
  }
    }
View Full Code Here

TOP

Related Classes of javax.management.remote.message.SASLMessage

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.