public interface OpenSslAsyncPrivateKeyMethod
限定符和类型 | 字段和说明 |
---|---|
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 |
限定符和类型 | 方法和说明 |
---|---|
Future<byte[]> |
decrypt(javax.net.ssl.SSLEngine engine,
byte[] input)
Decrypts the input with the given key and notifies the returned
Future with the decrypted bytes. |
Future<byte[]> |
sign(javax.net.ssl.SSLEngine engine,
int signatureAlgorithm,
byte[] input)
Signs the input with the given key and notifies the returned
Future 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
Future<byte[]> sign(javax.net.ssl.SSLEngine engine, int signatureAlgorithm, byte[] input)
Future
with the signed bytes.engine
- the SSLEngine
signatureAlgorithm
- the algorithm to use for signinginput
- the digest itselfFuture
that will be notified with the signed data
(must not be null
) when the operation completes.Future<byte[]> decrypt(javax.net.ssl.SSLEngine engine, byte[] input)
Future
with the decrypted bytes.engine
- the SSLEngine
input
- the input which should be decryptedFuture
that will be notified with the decrypted data
(must not be null
) when the operation completes.