Package org.conscrypt
Class NativeCrypto
- java.lang.Object
-
- org.conscrypt.NativeCrypto
-
@Internal public final class NativeCrypto extends Object
Provides the Java side of our JNI glue for OpenSSL.Note: Many methods in this class take a reference to a Java object that holds a native pointer in the form of a long in addition to the long itself and don't use the Java object in the native implementation. This is to prevent the Java object from becoming eligible for GC while the native method is executing. See this for more details.
-
-
Constructor Summary
Constructors Constructor Description NativeCrypto()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]get_ocsp_single_extension(byte[] ocspResponse, String oid, long x509Ref, OpenSSLX509Certificate holder, long issuerX509Ref, OpenSSLX509Certificate holder2)static StringSSL_get_current_cipher(long ssl, org.conscrypt.NativeSsl ssl_holder)static StringSSL_get_version(long ssl, org.conscrypt.NativeSsl ssl_holder)static intX509_NAME_hash_old(X500Principal principal)
-
-
-
Method Detail
-
X509_NAME_hash_old
public static int X509_NAME_hash_old(X500Principal principal)
-
SSL_get_current_cipher
public static String SSL_get_current_cipher(long ssl, org.conscrypt.NativeSsl ssl_holder)
-
SSL_get_version
public static String SSL_get_version(long ssl, org.conscrypt.NativeSsl ssl_holder)
-
get_ocsp_single_extension
public static byte[] get_ocsp_single_extension(byte[] ocspResponse, String oid, long x509Ref, OpenSSLX509Certificate holder, long issuerX509Ref, OpenSSLX509Certificate holder2)
-
-