Package io.netty.internal.tcnative
Class AsyncSSLPrivateKeyMethodAdapter
- java.lang.Object
-
- io.netty.internal.tcnative.AsyncSSLPrivateKeyMethodAdapter
-
- All Implemented Interfaces:
AsyncSSLPrivateKeyMethod
final class AsyncSSLPrivateKeyMethodAdapter extends java.lang.Object implements AsyncSSLPrivateKeyMethod
-
-
Field Summary
Fields Modifier and Type Field Description private SSLPrivateKeyMethodmethod-
Fields inherited from interface io.netty.internal.tcnative.AsyncSSLPrivateKeyMethod
SSL_SIGN_ECDSA_SECP256R1_SHA256, SSL_SIGN_ECDSA_SECP384R1_SHA384, SSL_SIGN_ECDSA_SECP521R1_SHA512, SSL_SIGN_ECDSA_SHA1, SSL_SIGN_ED25519, SSL_SIGN_RSA_PKCS1_MD5_SHA1, SSL_SIGN_RSA_PKCS1_SHA1, SSL_SIGN_RSA_PKCS1_SHA256, SSL_SIGN_RSA_PKCS1_SHA384, SSL_SIGN_RSA_PKCS1_SHA512, SSL_SIGN_RSA_PSS_RSAE_SHA256, SSL_SIGN_RSA_PSS_RSAE_SHA384, SSL_SIGN_RSA_PSS_RSAE_SHA512
-
-
Constructor Summary
Constructors Constructor Description AsyncSSLPrivateKeyMethodAdapter(SSLPrivateKeyMethod method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
method
private final SSLPrivateKeyMethod method
-
-
Constructor Detail
-
AsyncSSLPrivateKeyMethodAdapter
AsyncSSLPrivateKeyMethodAdapter(SSLPrivateKeyMethod method)
-
-
Method Detail
-
sign
public void sign(long ssl, int signatureAlgorithm, byte[] input, ResultCallback<byte[]> resultCallback)Description copied from interface:AsyncSSLPrivateKeyMethodSign the input with given EC key and notifyResultCallbackwith the signed bytes.- Specified by:
signin interfaceAsyncSSLPrivateKeyMethod- Parameters:
ssl- the SSL instancesignatureAlgorithm- the algorithm to use for signinginput- the input itselfresultCallback- 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:AsyncSSLPrivateKeyMethodDecrypts the input with the given RSA key and notifyResultCallbackwith the decrypted bytes.- Specified by:
decryptin interfaceAsyncSSLPrivateKeyMethod- Parameters:
ssl- the SSL instanceinput- the input which should be decryptedresultCallback- the callback that will be notified once the operation completes
-
-