接口 AsyncSSLPrivateKeyMethod
-
public interface AsyncSSLPrivateKeyMethodAllows to customize private key signing / decrypt (when using RSA).
-
-
字段概要
字段 修饰符和类型 字段 说明 static intSSL_SIGN_ECDSA_SECP256R1_SHA256static intSSL_SIGN_ECDSA_SECP384R1_SHA384static intSSL_SIGN_ECDSA_SECP521R1_SHA512static intSSL_SIGN_ECDSA_SHA1static intSSL_SIGN_ED25519static intSSL_SIGN_RSA_PKCS1_MD5_SHA1static intSSL_SIGN_RSA_PKCS1_SHA1static intSSL_SIGN_RSA_PKCS1_SHA256static intSSL_SIGN_RSA_PKCS1_SHA384static intSSL_SIGN_RSA_PKCS1_SHA512static intSSL_SIGN_RSA_PSS_RSAE_SHA256static intSSL_SIGN_RSA_PSS_RSAE_SHA384static intSSL_SIGN_RSA_PSS_RSAE_SHA512
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voiddecrypt(long ssl, byte[] input, ResultCallback<byte[]> resultCallback)Decrypts the input with the given RSA key and notifyResultCallbackwith the decrypted bytes.voidsign(long ssl, int signatureAlgorithm, byte[] input, ResultCallback<byte[]> resultCallback)Sign the input with given EC key and notifyResultCallbackwith the signed bytes.
-
-
-
字段详细资料
-
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
-
-
方法详细资料
-
sign
void sign(long ssl, int signatureAlgorithm, byte[] input, ResultCallback<byte[]> resultCallback)Sign the input with given EC key and notifyResultCallbackwith 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 completes
-
decrypt
void decrypt(long ssl, byte[] input, ResultCallback<byte[]> resultCallback)Decrypts the input with the given RSA key and notifyResultCallbackwith the decrypted bytes.- 参数:
ssl- the SSL instanceinput- the input which should be decryptedresultCallback- the callback that will be notified once the operation completes
-
-