Top Description Fields Methods
io.netty.internal.tcnative

public Interface AsyncSSLPrivateKeyMethod

Known Direct Implementers
io.netty.internal.tcnative.AsyncSSLPrivateKeyMethodAdapter

Allows to customize private key signing / decrypt (when using RSA).

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int

Method Summary

Modifier and TypeMethod and Description
public void
decrypt(long
the SSL instance
ssl
,
byte[]
the input which should be decrypted
input
,
ResultCallback<byte[]>
the callback that will be notified once the operation completes
resultCallback
)

Decrypts the input with the given RSA key and notify ResultCallback with the decrypted bytes.

public void
sign(long
the SSL instance
ssl
,
int
the algorithm to use for signing
signatureAlgorithm
,
byte[]
the input itself
input
,
ResultCallback<byte[]>
the callback that will be notified once the operation completes
resultCallback
)

Sign the input with given EC key and notify ResultCallback with the signed bytes.

Field Detail

SSL_SIGN_ECDSA_SECP256R1_SHA256back to summary
public static final int SSL_SIGN_ECDSA_SECP256R1_SHA256
SSL_SIGN_ECDSA_SECP384R1_SHA384back to summary
public static final int SSL_SIGN_ECDSA_SECP384R1_SHA384
SSL_SIGN_ECDSA_SECP521R1_SHA512back to summary
public static final int SSL_SIGN_ECDSA_SECP521R1_SHA512
SSL_SIGN_ECDSA_SHA1back to summary
public static final int SSL_SIGN_ECDSA_SHA1
SSL_SIGN_ED25519back to summary
public static final int SSL_SIGN_ED25519
SSL_SIGN_RSA_PKCS1_MD5_SHA1back to summary
public static final int SSL_SIGN_RSA_PKCS1_MD5_SHA1
SSL_SIGN_RSA_PKCS1_SHA1back to summary
public static final int SSL_SIGN_RSA_PKCS1_SHA1
SSL_SIGN_RSA_PKCS1_SHA256back to summary
public static final int SSL_SIGN_RSA_PKCS1_SHA256
SSL_SIGN_RSA_PKCS1_SHA384back to summary
public static final int SSL_SIGN_RSA_PKCS1_SHA384
SSL_SIGN_RSA_PKCS1_SHA512back to summary
public static final int SSL_SIGN_RSA_PKCS1_SHA512
SSL_SIGN_RSA_PSS_RSAE_SHA256back to summary
public static final int SSL_SIGN_RSA_PSS_RSAE_SHA256
SSL_SIGN_RSA_PSS_RSAE_SHA384back to summary
public static final int SSL_SIGN_RSA_PSS_RSAE_SHA384
SSL_SIGN_RSA_PSS_RSAE_SHA512back to summary
public static final int SSL_SIGN_RSA_PSS_RSAE_SHA512

Method Detail

decryptback to summary
public 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:long

the SSL instance

input:byte[]

the input which should be decrypted

resultCallback:ResultCallback<byte[]>

the callback that will be notified once the operation completes

signback to summary
public 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:long

the SSL instance

signatureAlgorithm:int

the algorithm to use for signing

input:byte[]

the input itself

resultCallback:ResultCallback<byte[]>

the callback that will be notified once the operation completes