HmacUtils (Apache CXF JavaDoc 3.0.4.redhat-621177 API)

org.apache.cxf.common.util.crypto

## Class HmacUtils

- java.lang.Object
- - org.apache.cxf.common.util.crypto.HmacUtils

-     public final class HmacUtils
      extends Object

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `computeHmac(byte[] key, Mac hmac, String data)`
    `static byte[]` | `computeHmac(byte[] key, String macAlgoJavaName, AlgorithmParameterSpec spec, String data)`
    `static byte[]` | `computeHmac(byte[] key, String macAlgoJavaName, String data)`
    `static byte[]` | `computeHmac(Key secretKey, Mac hmac, AlgorithmParameterSpec spec, String data)`
    `static byte[]` | `computeHmac(Key secretKey, Mac hmac, String data)`
    `static byte[]` | `computeHmac(String key, Mac hmac, String data)`
    `static byte[]` | `computeHmac(String key, String macAlgoJavaName, String data)`
    `static String` | `encodeHmacString(String macSecret, String macAlgoJavaName, String data)`
    `static String` | `encodeHmacString(String macSecret, String macAlgoJavaName, String data, boolean urlSafe)`
    `static String` | `generateKey(String algo)`
    `static Mac` | `getInitializedMac(byte[] key, String algo, AlgorithmParameterSpec spec)`
    `static Mac` | `getMac(String macAlgoJavaName)`
    `static Mac` | `getMac(String macAlgoJavaName, Provider provider)`
    `static Mac` | `getMac(String macAlgoJavaName, String provider)`

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

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

- - ### Method Detail

    - #### encodeHmacString

          public static String encodeHmacString(String macSecret,
                                String macAlgoJavaName,
                                String data)

    - #### encodeHmacString

          public static String encodeHmacString(String macSecret,
                                String macAlgoJavaName,
                                String data,
                                boolean urlSafe)

    - #### getMac

          public static Mac getMac(String macAlgoJavaName)

    - #### getMac

          public static Mac getMac(String macAlgoJavaName,
                   String provider)

    - #### getMac

          public static Mac getMac(String macAlgoJavaName,
                   Provider provider)

    - #### computeHmac

          public static byte[] computeHmac(String key,
                           String macAlgoJavaName,
                           String data)

    - #### computeHmac

          public static byte[] computeHmac(byte[] key,
                           String macAlgoJavaName,
                           String data)

    - #### computeHmac

          public static byte[] computeHmac(byte[] key,
                           String macAlgoJavaName,
                           AlgorithmParameterSpec spec,
                           String data)

    - #### computeHmac

          public static byte[] computeHmac(String key,
                           Mac hmac,
                           String data)

    - #### computeHmac

          public static byte[] computeHmac(byte[] key,
                           Mac hmac,
                           String data)

    - #### computeHmac

          public static byte[] computeHmac(Key secretKey,
                           Mac hmac,
                           String data)

    - #### computeHmac

          public static byte[] computeHmac(Key secretKey,
                           Mac hmac,
                           AlgorithmParameterSpec spec,
                           String data)

    - #### getInitializedMac

          public static Mac getInitializedMac(byte[] key,
                              String algo,
                              AlgorithmParameterSpec spec)

    - #### generateKey

          public static String generateKey(String algo)

Apache CXF