org.keycloak.crypto

## Class MacSignatureSignerContext

- java.lang.Object
- - org.keycloak.crypto.MacSignatureSignerContext

- All Implemented Interfaces:
    SignatureSignerContext
  Direct Known Subclasses:
    ServerMacSignatureSignerContext

      public class MacSignatureSignerContext
      extends Object
      implements SignatureSignerContext

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MacSignatureSignerContext(KeyWrapper key)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getAlgorithm()`
    `String` | `getHashAlgorithm()`
    `String` | `getKid()`
    `byte[]` | `sign(byte[] data)`

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

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

- - ### Constructor Detail

    - #### MacSignatureSignerContext

          public MacSignatureSignerContext(KeyWrapper key)
                                    throws SignatureException

      Throws:
        `SignatureException`

  - ### Method Detail

    - #### getKid

          public String getKid()

      Specified by:
        `getKid` in interface `SignatureSignerContext`

    - #### getAlgorithm

          public String getAlgorithm()

      Specified by:
        `getAlgorithm` in interface `SignatureSignerContext`

    - #### getHashAlgorithm

          public String getHashAlgorithm()

      Specified by:
        `getHashAlgorithm` in interface `SignatureSignerContext`

    - #### sign

          public byte[] sign(byte[] data)
                      throws SignatureException

      Specified by:
        `sign` in interface `SignatureSignerContext`
      Throws:
        `SignatureException`

Copyright © 2021 JBoss by Red Hat. All rights reserved.