NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class Md5ValidatorListener

Listener used to validate the MD5 of the ReceiveMessage body

  Aws\Sqs\Md5ValidatorListener implements Symfony\Component\EventDispatcher\EventSubscriberInterface

Namespace: Aws\Sqs
Located at Aws/Sqs/Md5ValidatorListener.php

## Methods summary

- `public static` `getSubscribedEvents ( )`
- `public` `onCommandBeforeSend ( Guzzle\Common\Event $event )`

  Validates the MD5OfBody attribute against the body

## Methods detail

# `public static`
`getSubscribedEvents( )`
# `public`
`onCommandBeforeSend( `Guzzle\Common\Event` $event )`

Validates the MD5OfBody attribute against the body

#### Parameters

$event
  ``Guzzle\Common\Event``
  $event Event emitted

#### Throws

``Aws\Sqs\Exception\SqsException``
when an MD5 mismatch occurs

### Magic methods summary