MuleMessage message = event.getMessage();
PGPPublicKey userKeyBundle = keyManager.getPublicKey((String)getCredentialsAccessor().getCredentials(
event));
final PGPCryptInfo cryptInfo = new PGPCryptInfo(userKeyBundle, signRequired);
try
{
updatePayload(event.getMessage(), strategy.encrypt(message.getPayloadAsBytes(), cryptInfo), event);
}