Package io.netty.internal.tcnative
Interface CertificateRequestedCallback
Deprecated.
Is called during handshake and hooked into openssl via
SSL_CTX_set_client_cert_cb
.
IMPORTANT: Implementations of this interface should be static as it is stored as a global reference via JNI. This
means if you use an inner / anonymous class to implement this and also depend on the finalizer of the
class to free up the SSLContext the finalizer will never run as the object is never GC, due the hard
reference to the enclosing class. This will most likely result in a memory leak.+-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
Deprecated.static final byte
Deprecated.static final byte
Deprecated.static final byte
Deprecated.static final byte
Deprecated.static final byte
Deprecated.static final byte
Deprecated.The types contained in thekeyTypeBytes
array. -
Method Summary
Modifier and TypeMethodDescriptionvoid
requested
(long ssl, long certOut, long keyOut, byte[] keyTypeBytes, byte[][] asn1DerEncodedPrincipals) Deprecated.Called during cert selection.
-
Field Details
-
TLS_CT_RSA_SIGN
static final byte TLS_CT_RSA_SIGNDeprecated.The types contained in thekeyTypeBytes
array.- See Also:
-
TLS_CT_DSS_SIGN
static final byte TLS_CT_DSS_SIGNDeprecated.- See Also:
-
TLS_CT_RSA_FIXED_DH
static final byte TLS_CT_RSA_FIXED_DHDeprecated.- See Also:
-
TLS_CT_DSS_FIXED_DH
static final byte TLS_CT_DSS_FIXED_DHDeprecated.- See Also:
-
TLS_CT_ECDSA_SIGN
static final byte TLS_CT_ECDSA_SIGNDeprecated.- See Also:
-
TLS_CT_RSA_FIXED_ECDH
static final byte TLS_CT_RSA_FIXED_ECDHDeprecated.- See Also:
-
TLS_CT_ECDSA_FIXED_ECDH
static final byte TLS_CT_ECDSA_FIXED_ECDHDeprecated.- See Also:
-
-
Method Details
-
requested
void requested(long ssl, long certOut, long keyOut, byte[] keyTypeBytes, byte[][] asn1DerEncodedPrincipals) throws Exception Deprecated.Called during cert selection. If a certificate chain / key should be usedSSL.setKeyMaterialClientSide(long, long, long, long, long)
must be called from this callback after all preparations / validations were completed.- Parameters:
ssl
- the SSL instancecertOut
- the pointer to the pointer of the certificate to use.keyOut
- the pointer to the pointer of the private key to use.keyTypeBytes
- an array of the key types.asn1DerEncodedPrincipals
- the principals- Throws:
Exception
-
CertificateCallback