Top Description Fields Methods
io.netty.internal.tcnative

public Interface SSLPrivateKeyMethod


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 byte[]

Returns:

the decrypted data
decrypt
(long
the SSL instance
ssl
,
byte[]
the input which should be decrypted
input
)

Decrypts the input with the given RSA key and returns the decrypted bytes.

public byte[]

Returns:

the sign
sign
(long
the SSL instance
ssl
,
int
the algorithm to use for signing
signatureAlgorithm
,
byte[]
the input itself
input
)

Sign the input with given EC key and returns 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 byte[] decrypt(long ssl, byte[] input) throws Exception

Decrypts the input with the given RSA key and returns the decrypted bytes.

Parameters
ssl:long

the SSL instance

input:byte[]

the input which should be decrypted

Returns:byte[]

the decrypted data

Exceptions
Exception:
thrown if an error accours while decrypting.
signback to summary
public byte[] sign(long ssl, int signatureAlgorithm, byte[] input) throws Exception

Sign the input with given EC key and returns the signed bytes.

Parameters
ssl:long

the SSL instance

signatureAlgorithm:int

the algorithm to use for signing

input:byte[]

the input itself

Returns:byte[]

the sign

Exceptions
Exception:
thrown if an error accours while signing.