Code example for MessageProp

0
    try { 
      mContext.verifyMIC(inToken, 0, inToken.length, inMsg, 0, inMsg.length, msgProp);
    } catch(GSSException ex) {
      throw new RPCAuthException(RPC_AUTH_STATUS_GSS_CREDPROBLEM, ex);
    } 
    msgProp = new MessageProp(true);
    try { 
      RPCBuffer buffer = new RPCBuffer(mContext.unwrap(data, 0, data.length, msgProp));
      int expected = buffer.readUint32();
      if(expected != creds.getSequenceNum()) {
        LOGGER.warn("Sequence numbers did not match " + expected + " "  + creds.getSequenceNum());
        throw new RPCAcceptedException(RPC_ACCEPT_GARBAGE_ARGS); 
      } 
      mSequenceNumbers.add(expected);
      if(mSequenceNumbers.size() > RPCSEC_GSS_SEQUENCE_WINDOW) {
        int first = mSequenceNumbers.first();
        mSequenceNumbers.remove(first);
      } 
      return buffer;
    } catch(GSSException ex) {