# Class: InvalidCredentialsEvent

## Constructor

#### new InvalidCredentialsEvent(failureCount, retryCallback, cancelCallback)

  Class containing retry callback, cancel callback, and failure count.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `failureCount` | Number |
  `retryCallback` | function |
  `cancelCallback` | function |

## Methods

#### cancel() → {void}

  Cancels unauthorized action.

  ##### Returns:

  { void }

#### getFailureCount() → {Number}

  Returns failure count.

  ##### Returns:

  { Number }

#### retry(credentialProvider) → {void}

  Retries unauthorized action.

  ##### Parameters:

  Name | Type | Argument | Description
  --- | --- | --- | ---
  `credentialProvider` | AvayaClientServices.Config.CredentialProvider | <optional> |

  ##### Returns:

  { void }