org.keycloak.crypto

## Class MacSignatureVerifierContext

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

- All Implemented Interfaces:
    SignatureVerifierContext
  Direct Known Subclasses:
    ClientMacSignatureVerifierContext, ServerMacSignatureVerifierContext

      public class MacSignatureVerifierContext
      extends Object
      implements SignatureVerifierContext

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MacSignatureVerifierContext(KeyWrapper key)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getAlgorithm()`
    `String` | `getKid()`
    `boolean` | `verify(byte[] data, byte[] signature)`

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

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

- - ### Constructor Detail

    - #### MacSignatureVerifierContext

          public MacSignatureVerifierContext(KeyWrapper key)

  - ### Method Detail

    - #### getKid

          public String getKid()

      Specified by:
        `getKid` in interface `SignatureVerifierContext`

    - #### getAlgorithm

          public String getAlgorithm()

      Specified by:
        `getAlgorithm` in interface `SignatureVerifierContext`

    - #### verify

          public boolean verify(byte[] data,
                                byte[] signature)
                         throws VerificationException

      Specified by:
        `verify` in interface `SignatureVerifierContext`
      Throws:
        `VerificationException`

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