Class AsyncSSLPrivateKeyMethodAdapter

java.lang.Object
io.netty.internal.tcnative.AsyncSSLPrivateKeyMethodAdapter
All Implemented Interfaces:
AsyncSSLPrivateKeyMethod

final class AsyncSSLPrivateKeyMethodAdapter extends Object implements AsyncSSLPrivateKeyMethod
  • Field Details

  • Constructor Details

  • Method Details

    • sign

      public void sign(long ssl, int signatureAlgorithm, byte[] input, ResultCallback<byte[]> resultCallback)
      Description copied from interface: AsyncSSLPrivateKeyMethod
      Sign the input with given EC key and notify ResultCallback with the signed bytes.
      Specified by:
      sign in interface AsyncSSLPrivateKeyMethod
      Parameters:
      ssl - the SSL instance
      signatureAlgorithm - the algorithm to use for signing
      input - the input itself
      resultCallback - the callback that will be notified once the operation completes
    • decrypt

      public void decrypt(long ssl, byte[] input, ResultCallback<byte[]> resultCallback)
      Description copied from interface: AsyncSSLPrivateKeyMethod
      Decrypts the input with the given RSA key and notify ResultCallback with the decrypted bytes.
      Specified by:
      decrypt in interface AsyncSSLPrivateKeyMethod
      Parameters:
      ssl - the SSL instance
      input - the input which should be decrypted
      resultCallback - the callback that will be notified once the operation completes