Interface AsyncSSLPrivateKeyMethod

  • All Known Implementing Classes:
    AsyncSSLPrivateKeyMethodAdapter

    public interface AsyncSSLPrivateKeyMethod
    Allows to customize private key signing / decrypt (when using RSA).
    • Field Detail

      • SSL_SIGN_RSA_PKCS1_SHA1

        static final int SSL_SIGN_RSA_PKCS1_SHA1
      • SSL_SIGN_RSA_PKCS1_SHA256

        static final int SSL_SIGN_RSA_PKCS1_SHA256
      • SSL_SIGN_RSA_PKCS1_SHA384

        static final int SSL_SIGN_RSA_PKCS1_SHA384
      • SSL_SIGN_RSA_PKCS1_SHA512

        static final int SSL_SIGN_RSA_PKCS1_SHA512
      • SSL_SIGN_ECDSA_SHA1

        static final int SSL_SIGN_ECDSA_SHA1
      • SSL_SIGN_ECDSA_SECP256R1_SHA256

        static final int SSL_SIGN_ECDSA_SECP256R1_SHA256
      • SSL_SIGN_ECDSA_SECP384R1_SHA384

        static final int SSL_SIGN_ECDSA_SECP384R1_SHA384
      • SSL_SIGN_ECDSA_SECP521R1_SHA512

        static final int SSL_SIGN_ECDSA_SECP521R1_SHA512
      • SSL_SIGN_RSA_PSS_RSAE_SHA256

        static final int SSL_SIGN_RSA_PSS_RSAE_SHA256
      • SSL_SIGN_RSA_PSS_RSAE_SHA384

        static final int SSL_SIGN_RSA_PSS_RSAE_SHA384
      • SSL_SIGN_RSA_PSS_RSAE_SHA512

        static final int SSL_SIGN_RSA_PSS_RSAE_SHA512
      • SSL_SIGN_ED25519

        static final int SSL_SIGN_ED25519
      • SSL_SIGN_RSA_PKCS1_MD5_SHA1

        static final int SSL_SIGN_RSA_PKCS1_MD5_SHA1
    • Method Detail

      • sign

        void sign​(long ssl,
                  int signatureAlgorithm,
                  byte[] input,
                  ResultCallback<byte[]> resultCallback)
        Sign the input with given EC key and notify ResultCallback with the signed bytes.
        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

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