Package org.apache.activemq.artemis.spi.core.security.jaas

## Class HmacCallback

- java.lang.Object
- - org.apache.activemq.artemis.spi.core.security.jaas.HmacCallback

- All Implemented Interfaces:
    `javax.security.auth.callback.Callback`

      public class HmacCallback
      extends java.lang.Object
      implements javax.security.auth.callback.Callback

  Callback for obtaining information about a used H`Mac`

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `HmacCallback()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `javax.crypto.Mac` | `getHmac()` |
    `void` | `setHmac​(javax.crypto.Mac hmac)` | set the Hmac to use

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

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

- - ### Constructor Detail

    - #### HmacCallback

          public HmacCallback()

  - ### Method Detail

    - #### setHmac

          public void setHmac​(javax.crypto.Mac hmac)

      set the Hmac to use
      Parameters:
        `hmac` -

    - #### getHmac

          public javax.crypto.Mac getHmac()

      Returns:
        the Hmac or `null` if non could be obtained