public interface AsyncSSLPrivateKeyMethod
| Modifier and Type | Field and Description |
|---|---|
static int |
SSL_SIGN_ECDSA_SECP256R1_SHA256 |
static int |
SSL_SIGN_ECDSA_SECP384R1_SHA384 |
static int |
SSL_SIGN_ECDSA_SECP521R1_SHA512 |
static int |
SSL_SIGN_ECDSA_SHA1 |
static int |
SSL_SIGN_ED25519 |
static int |
SSL_SIGN_RSA_PKCS1_MD5_SHA1 |
static int |
SSL_SIGN_RSA_PKCS1_SHA1 |
static int |
SSL_SIGN_RSA_PKCS1_SHA256 |
static int |
SSL_SIGN_RSA_PKCS1_SHA384 |
static int |
SSL_SIGN_RSA_PKCS1_SHA512 |
static int |
SSL_SIGN_RSA_PSS_RSAE_SHA256 |
static int |
SSL_SIGN_RSA_PSS_RSAE_SHA384 |
static int |
SSL_SIGN_RSA_PSS_RSAE_SHA512 |
| Modifier and Type | Method and Description |
|---|---|
void |
decrypt(long ssl,
byte[] input,
ResultCallback<byte[]> resultCallback)
Decrypts the input with the given RSA key and notify
ResultCallback with the decrypted bytes. |
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. |
static final int SSL_SIGN_RSA_PKCS1_SHA1
static final int SSL_SIGN_RSA_PKCS1_SHA256
static final int SSL_SIGN_RSA_PKCS1_SHA384
static final int SSL_SIGN_RSA_PKCS1_SHA512
static final int SSL_SIGN_ECDSA_SHA1
static final int SSL_SIGN_ECDSA_SECP256R1_SHA256
static final int SSL_SIGN_ECDSA_SECP384R1_SHA384
static final int SSL_SIGN_ECDSA_SECP521R1_SHA512
static final int SSL_SIGN_RSA_PSS_RSAE_SHA256
static final int SSL_SIGN_RSA_PSS_RSAE_SHA384
static final int SSL_SIGN_RSA_PSS_RSAE_SHA512
static final int SSL_SIGN_ED25519
static final int SSL_SIGN_RSA_PKCS1_MD5_SHA1
void sign(long ssl,
int signatureAlgorithm,
byte[] input,
ResultCallback<byte[]> resultCallback)
ResultCallback with the signed bytes.ssl - the SSL instancesignatureAlgorithm - the algorithm to use for signinginput - the input itselfresultCallback - the callback that will be notified once the operation completesvoid decrypt(long ssl,
byte[] input,
ResultCallback<byte[]> resultCallback)
ResultCallback with the decrypted bytes.ssl - the SSL instanceinput - the input which should be decryptedresultCallback - the callback that will be notified once the operation completesCopyright © 2022 The Netty Project. All rights reserved.