org.keycloak.crypto

## Class ServerECDSASignatureSignerContext

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

- All Implemented Interfaces:
    SignatureSignerContext

      public class ServerECDSASignatureSignerContext
      extends AsymmetricSignatureSignerContext

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServerECDSASignatureSignerContext(KeycloakSession session, String algorithm)`
    `ServerECDSASignatureSignerContext(KeyWrapper key)`

  - ### Method Summary

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

    - ### Methods inherited from class org.keycloak.crypto.AsymmetricSignatureSignerContext

      `getAlgorithm, getHashAlgorithm, getKid`

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

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

- - ### Constructor Detail

    - #### ServerECDSASignatureSignerContext

          public ServerECDSASignatureSignerContext(KeycloakSession session,
                                                   String algorithm)
                                            throws SignatureException

      Throws:
        `SignatureException`

    - #### ServerECDSASignatureSignerContext

          public ServerECDSASignatureSignerContext(KeyWrapper key)

  - ### Method Detail

    - #### sign

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

      Specified by:
        `sign` in interface `SignatureSignerContext`
      Overrides:
        `sign` in class `AsymmetricSignatureSignerContext`
      Throws:
        `SignatureException`

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