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

# Class SignatureListener

Listener used to sign requests before they are sent over the wire

  Aws\Common\Signature\SignatureListener implements Symfony\Component\EventDispatcher\EventSubscriberInterface

Namespace: Aws\Common\Signature
Located at Aws/Common/Signature/SignatureListener.php

## Methods summary

- `public` `__construct ( Aws\Common\Credentials\CredentialsInterface $credentials, Aws\Common\Signature\SignatureInterface $signature )`

  Construct a new request signing plugin

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

  Updates the listener with new credentials if the client is updated

- `public` `onRequestBeforeSend ( Guzzle\Common\Event $event )`

  Signs requests before they are sent

## Methods detail

# `public`
`__construct( `Aws\Common\Credentials\CredentialsInterface` $credentials, `Aws\Common\Signature\SignatureInterface` $signature )`

Construct a new request signing plugin

#### Parameters

$credentials
  ``Aws\Common\Credentials\CredentialsInterface``
  $credentials Credentials used to sign requests
$signature
  ``Aws\Common\Signature\SignatureInterface``
  $signature Signature implementation

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

Updates the listener with new credentials if the client is updated

#### Parameters

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

# `public`
`onRequestBeforeSend( `Guzzle\Common\Event` $event )`

Signs requests before they are sent

#### Parameters

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

### Magic methods summary

## Properties summary

`protected `Aws\Common\Credentials\CredentialsInterface`` | $credentials | #
`protected `Aws\Common\Signature\SignatureInterface`` | $signature | #