Package io.netty.internal.tcnative
Interface SSLPrivateKeyMethod
public interface SSLPrivateKeyMethod
Allows to customize private key signing / decrypt (when using RSA).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
-
Field Details
-
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
-
-
Method Details
-
sign
Sign the input with given EC key and returns the signed bytes.- Parameters:
ssl
- the SSL instancesignatureAlgorithm
- the algorithm to use for signinginput
- the input itself- Returns:
- the sign
- Throws:
Exception
- thrown if an error accours while signing.
-
decrypt
Decrypts the input with the given RSA key and returns the decrypted bytes.- Parameters:
ssl
- the SSL instanceinput
- the input which should be decrypted- Returns:
- the decrypted data
- Throws:
Exception
- thrown if an error accours while decrypting.
-