protected Object handleEncryptedMessage(Message msg, byte[] version) throws Exception { if(!Arrays.equals(sym_version, version)) { // only check if msg needs to be queued if versions differ versionMismatch(msg); return null; } // try and decrypt the message - we need to copy msg as we modify its // buffer (http://jira.jboss.com/jira/browse/JGRP-538) Message tmpMsg=decryptMessage(null, msg.copy()); // need to copy for possible xmits if(tmpMsg != null) return up_prot.up(tmpMsg); log.warn("%s: unrecognized cipher; discarding message from %s", local_addr, msg.src()); return null; }
protected Object handleEncryptedMessage(Message msg, byte[] version) throws Exception { if(!Arrays.equals(sym_version, version)) { // only check if msg needs to be queued if versions differ versionMismatch(msg); return null; } // try and decrypt the message - we need to copy msg as we modify its // buffer (http://jira.jboss.com/jira/browse/JGRP-538) Message tmpMsg=decryptMessage(null, msg.copy()); // need to copy for possible xmits if(tmpMsg != null) return up_prot.up(tmpMsg); log.warn("%s: unrecognized cipher; discarding message from %s", local_addr, msg.src()); return null; }