Package io.axoniq.dataprotection.cryptoengine.vault

## Class PermissionDeniedException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.io.IOException
      - - io.axoniq.dataprotection.cryptoengine.vault.PermissionDeniedException

- All Implemented Interfaces:
    `Serializable`

      public class PermissionDeniedException
      extends IOException

  Exception that is thrown internally in the VaultCryptoEngine when a 403 response is returned from Vault. This class is made public for testing purposes, but shouldn't be used directly by the application.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PermissionDeniedException​(okhttp3.Response response)` | Create a new PermissionDeniedException

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `okhttp3.Response` | `getResponse()` | Return the response that came from Vault

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### PermissionDeniedException

          public PermissionDeniedException​(okhttp3.Response response)

      Create a new PermissionDeniedException
      Parameters:
        `response` - the response from HashiCorp Vault

  - ### Method Detail

    - #### getResponse

          public okhttp3.Response getResponse()

      Return the response that came from Vault
      Returns:
        the response