org.keycloak.jose.jws.crypto

## Class HMACProvider

- java.lang.Object
- - org.keycloak.jose.jws.crypto.HMACProvider

-     public class HMACProvider
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HMACProvider()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `sign(byte[] data, Algorithm algorithm, byte[] sharedSecret)`
    `static byte[]` | `sign(byte[] data, Algorithm algorithm, SecretKey key)`
    `static boolean` | `verify(JWSInput input, byte[] sharedSecret)`
    `static boolean` | `verify(JWSInput input, SecretKey key)`

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

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

- - ### Constructor Detail

    - #### HMACProvider

          public HMACProvider()

  - ### Method Detail

    - #### sign

          public static byte[] sign(byte[] data,
                    Algorithm algorithm,
                    byte[] sharedSecret)

    - #### sign

          public static byte[] sign(byte[] data,
                    Algorithm algorithm,
                    SecretKey key)

    - #### verify

          public static boolean verify(JWSInput input,
                       SecretKey key)

    - #### verify

          public static boolean verify(JWSInput input,
                       byte[] sharedSecret)

Copyright © 2014. All Rights Reserved.