public class SSL4D
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
nativeHeap |
Modifier | Constructor and Description |
---|---|
protected |
SSL4D()
Store the reference to an SSL context.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose4D()
Free any used resources on this connection.
|
protected void |
finalize() |
java.lang.String |
getCertificateDN4D(int component)
Retrieve an X.509 distinguished name component.
|
byte |
getCipherId4D()
Return the SSL cipher id.
|
java.lang.Exception |
getLastException() |
byte[] |
getSessionId4D()
Get the session id for a handshake.
|
int |
handshakeStatus4D()
Return the result of a handshake.
|
int |
read4D(SSLReadHolder rh)
Read the SSL data stream.
|
int |
renegotiate4D()
Force the client to perform its handshake again.
|
int |
verifyCertificate4D()
Authenticate a received certificate.
|
int |
write(byte[] out_data)
Write to the SSL data stream.
|
int |
write4D(byte[] out_data,
int out_len)
Write to the SSL data stream.
|
protected SSL4D()
ssl
- [in] A reference to an SSL object.public void dispose4D()
public int handshakeStatus4D()
public byte getCipherId4D()
public byte[] getSessionId4D()
public java.lang.String getCertificateDN4D(int component)
component
- [in] one of:
- SSL_X509_CERT_COMMON_NAME
- SSL_X509_CERT_ORGANIZATION
- SSL_X509_CERT_ORGANIZATIONAL_NAME
- SSL_X509_CA_CERT_COMMON_NAME
- SSL_X509_CA_CERT_ORGANIZATION
- SSL_X509_CA_CERT_ORGANIZATIONAL_NAMEpublic int read4D(SSLReadHolder rh)
rh
- [out] After a successful read, the decrypted data can be
retrieved with rh.getData(). It will be null otherwise.public final int write(byte[] out_data)
out_data
- [in] The data to be writtenpublic int write4D(byte[] out_data, int out_len)
out_data
- [in] The data to be writtenout_len
- [in] The number of bytes to be writtenpublic int verifyCertificate4D()
public int renegotiate4D()
public final java.lang.Exception getLastException()
protected void finalize()
finalize
in class java.lang.Object