| Modifier and Type | Field 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 | |
| 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 | SSL_MAX_RECORD_LENGTH
The TLS 1.2 RFC defines the maximum length to be
|
| 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 | |
| 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 | SSL_PROTOCOL_TLS
TLS_*method according to SSL_CTX_new |
| 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 | |
| public static final long | |
| public static final long | |
| public static final long | |
| public static final long | |
| public static final long | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static native String[] | Returns: the methodsthe SSL instance (SSL*) ssl)Return the methods used for authentication. |
| public static native void | bioClearByteBuffer(long
BIO*.After you are done buffering data from |
| public static native int | Returns: The number of bytes that were flushed.BIO*.Flush any pending bytes in the internal SSL write buffer. |
| public static native int | bioLengthByteBuffer(long
BIO*.Get the remaining length of the |
| public static native int | Returns: the amount of data pending in buffer used for non-application writes.BIO*.Get the amount of data pending in buffer used for non-application writes. |
| public static native long | Returns: pointer to the Network BIO (BIO *). The memory is owned byssl and will be cleaned up by freeSSL(long).the SSL instance (SSL *) ssl, int The size of the internal buffer for write operations that are not
initiated directly by the application attempting to encrypt data.
Must be > nonApplicationBufferSize)0.Initialize the BIO for the SSL instance. |
| public static native void | bioSetByteBuffer(long
BIO*.The memory address (typically from a direct bufferAddress, int ByteBuffer) which will be used
to either write encrypted data to, or read encrypted data from by OpenSSL's internal BIO pair.The maximum usable length in bytes starting at maxUsableBytes, boolean bufferAddress.true if this buffer is expected to buffer data as a result of calls to SSL_write.
false if this buffer is expected to buffer data as a result of calls to SSL_read.Set the memory location which that OpenSSL's internal BIO will use to write encrypted data to, or read encrypted data from. |
| public static native void | bioSetFd(long
the SSL instance (SSL *) ssl, int the file descriptor of the socket used for the given SSL connection fd)Sets the socket file descriptor of the rbio field inside the SSL struct (ssl->rbio->num) |
| public static native int | |
| public static native void | |
| public static native void | clearOptions(long
the SSL instance (SSL *) ssl, int See SSL.SSL_OP_* for option flags. options)Clear OpenSSL Option. |
| public static native int | Returns: the return code ofSSL_do_handshake.the SSL instance (SSL *) ssl)SSL_do_handshake |
| public static native void | enableOcsp(long ssl)
Enables OCSP stapling for the given |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native String | Returns: the name of the selected ALPN protocolthe SSL instance (SSL *) ssl)SSL_get0_alpn_selected |
| public static AsyncTask | Returns: the task to run.the SSL instance (SSL *) ssl)Return the |
| public static native String | Returns: the name of the current cipher.the SSL instance (SSL *) ssl)SSL_get_cipher |
| public static native String[] | Returns: ciphersthe SSL instance (SSL *) ssl)Returns all Returns the cipher suites that are available for negotiation in an SSL handshake. |
| public static native byte[] | Returns: the random client value used for the ssl sessionthe SSL instance (SSL *) ssl)Extracts the random value sent from the client to the server during the initial SSL/TLS handshake. |
| public static native int | Returns: the error codeSSL pointer (SSL *) ssl, int TLS/SSL I/O return value ret)SSL_get_error |
| public static native String | Returns: the error stringthe error number / code errorNumber)Get the error string representing for the given |
| public static native int | Returns: the number of handshakes done for this SSL instance.the SSL instance (SSL *) ssl)Returns the number of handshakes done for this SSL instance. |
| public static native String | |
| public static native int | Returns: the last error code for the calling thread.Get the error number representing the last error OpenSSL encountered on this thread. |
| public static native byte[] | Returns: the master key used for the ssl sessionthe SSL instance (SSL *) ssl)Returns the master key used for the current ssl session. |
| public static native int | Returns: Maximum overhead, in bytes, of wrapping (a.k.a sealing) a record with ssl.the SSL instance (SSL *). ssl)Get the maximum overhead, in bytes, of wrapping (a.k.a sealing) a record with ssl. |
| public static native int | |
| public static native String | Returns: the name of the negotiated protothe SSL instance (SSL *) ssl)SSL_get0_next_proto_negotiated |
| public static native byte[] | getOcspResponse(long
the SSL instance (SSL *) ssl)Returns the OCSP response for the given |
| public static native int | Returns: options See SSL.SSL_OP_* for option flags.the SSL instance (SSL *) ssl)Get OpenSSL Option. |
| public static native byte[][] | Returns: the chain ornull if none was sendthe SSL instance (SSL *) ssl)Get the peer certificate chain or |
| public static native byte[] | Returns: the peer certificate ornull if none was sendthe SSL instance (SSL *) ssl)Get the peer certificate or |
| public static native byte[] | Returns: the random server value used for the ssl sessionthe SSL instance (SSL *) ssl)Extracts the random value sent from the server to the client during the initial SSL/TLS handshake. |
| public static native long | Returns: the SSL_SESSION instance (SSL_SESSION *) usedthe SSL instance (SSL *) ssl)Returns the |
| public static native byte[] | Returns: the session as byte array representation obtained via SSL_SESSION_get_id.the SSL instance (SSL *) ssl)Returns the ID of the session as byte array representation. |
| public static native int | Returns: the return code ofSSL_get_shutdownthe SSL instance (SSL *) ssl)SSL_get_shutdown |
| public static native String[] | Returns: the signature algorithms ornull.the SSL instance (SSL *) ssl)Return the signature algorithms that the remote peer supports or |
| public static native String | Returns: the SNI hostname ornull if none was used.the SSL instance (SSL *) ssl)Return the SNI hostname that was sent as part of the SSL Hello. |
| public static native Runnable | |
| public static native long | Returns: returns the time at which the session ssl was established. The time is given in seconds since the Epochthe SSL instance (SSL *) ssl)SSL_get_time |
| public static native long | Returns: returns the timeout for the session ssl The time is given in seconds since the Epochthe SSL instance (SSL *) ssl)SSL_get_timeout |
| public static native String | |
| pack-priv static native int | Returns: APR status codeSupport for external a Crypto Device ("engine"),
usually a hardware accelerator card for crypto operations. engine)Initialize OpenSSL support. |
| public static native int | |
| public static native boolean | Returns: true if the SSL_SESSION was reused, false otherwise.the SSL instance (SSL *) ssl)Return |
| public static native long | Returns: EVP_PKEY pointerthe id of the key. keyId, String the password to use or password)null if none.Load a private key from the used OpenSSL ENGINE via the ENGINE_load_private_key function. |
| public static native long | |
| public static native long | Returns: pointer to SSL instance (SSL *)Server or Client context to use. ctx, boolean if true configure SSL instance to use accept handshake routines
if false configure SSL instance to use connect handshake routines server)SSL_new |
| public static native long | Returns: EVP_PKEY pointerthe pointer to the privateKeyBio, String BIO that contains the private keythe password or password)null if no password is neededParse private key from BIO and return |
| public static native long | Returns: STACK_OF(X509) pointerthe pointer to the x509ChainBio)BIO that contains the X509 chainParse X509 chain from BIO and return ( |
| public static native int | Returns: the number of read bytesthe SSL instance (SSL *) ssl, long the memory address of the buffer rbuf, int the length rlen)SSL_read |
| public static native void | setCertificateBio(long
Server or Client to use. ssl, long Certificate BIO. certBio, long Private Key BIO to use if not in cert. keyBio, String Certificate password. If null and certificate
is encrypted. password)
Deprecated
use
Set Certificate
Point setCertificate at a PEM encoded certificate stored in a BIO.
setKeyMaterial(long, long, long)
|
| public static native void | setCertificateChainBio(long
Server or Client to use. ssl, long BIO of PEM-encoded Server CA Certificates. bio, boolean Skip first certificate if chain file is inside
certificate file. skipfirst)
Deprecated
use
Set BIO of PEM-encoded Server CA Certificates
setKeyMaterial(long, long, long)
This directive sets the optional all-in-one file where you can assemble the certificates of Certification Authorities (CA) which form the certificate chain of the server certificate. |
| public static boolean | Returns: true if successfulthe SSL instance (SSL *) ssl, String an SSL cipher specification ciphers)
Deprecated
Use
Returns the cipher suites available for negotiation in SSL handshake.
setCipherSuites(long, String, boolean)
|
| public static native boolean | Returns: true if successfulthe SSL instance (SSL *) ssl, String an SSL cipher specification ciphers, boolean true if the ciphers are for TLSv1.3Returns the cipher suites available for negotiation in SSL handshake. |
| public static native void | setHostNameValidation(long
the SSL instance (SSL*). ssl, int a bitmask of flags, String X509_CHECK_FLAG* values.the hostname which is expected for validation. hostname)Explicitly control hostname validation see X509_check_host for X509_CHECK_FLAG* definitions. |
| public static native void | |
| public static native void | setKeyMaterialClientSide(long ssl, long x509Out, long pkeyOut, long chain, long key)
Deprecated
use
Sets the keymaterial to be used for the client side.
setKeyMaterial(long, long, long)
|
| public static void | setKeyMaterialServerSide(long ssl, long chain, long key)
Deprecated
use
Sets the keymaterial to be used for the server side.
setKeyMaterial(long, long, long)
|
| public static native int | |
| public static native void | setOcspResponse(long
the SSL instance (SSL *) ssl, byte[] response)Sets the OCSP response for the given |
| public static native void | setOptions(long
the SSL instance (SSL *) ssl, int See SSL.SSL_OP_* for option flags. options)Set OpenSSL Option. |
| public static native void | setRenegotiateMode(long
the SSL instance (SSL *) ssl, int the mode. mode)Allow to set the renegotiation mode that is used. |
| public static native boolean | Returns: true if successful, false otherwise.the SSL instance (SSL *) ssl, long the SSL_SESSION instance (SSL_SESSION *) session)Sets the |
| public static native void | |
| public static native long | Returns: returns the timeout for the session ssl before this call. The time is given in seconds since the Epochthe SSL instance (SSL *) ssl, long timeout in seconds seconds)SSL_set_timeout |
| public static void | setTlsExtHostName(long
the SSL instance (SSL *) ssl, String the hostname hostname)Call SSL_set_tlsext_host_name |
| private static native void | |
| public static native void | setVerify(long
the SSL instance (SSL *) ssl, int Type of Client Certificate verification. level, int Maximum depth of CA Certificates in Client Certificate
verification. Ignored if value is depth)<0.Set Type of Client Certificate verification and Maximum depth of CA Certificates in Client Certificate verification. |
| public static native int | |
| public static native int | Returns: The number of bytes pending in SSL which can be read immediately.the SSL instance (SSL *) ssl)The number of bytes pending in SSL which can be read immediately. |
| public static native int | |
| public static native String | |
| public static native int | Returns: the number of written bytesthe SSL instance (SSL *) ssl, long the memory address of the buffer wbuf, int the length wlen)SSL_write |