org.keycloak.crypto

## Class AsymmetricSignatureSignerContext

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

- All Implemented Interfaces:
    SignatureSignerContext
  Direct Known Subclasses:
    ServerAsymmetricSignatureSignerContext, ServerECDSASignatureSignerContext

      public class AsymmetricSignatureSignerContext
      extends Object
      implements SignatureSignerContext

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AsymmetricSignatureSignerContext(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

    - #### AsymmetricSignatureSignerContext

          public AsymmetricSignatureSignerContext(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.