1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public final class [KeyStore.PrivateKeyEntry](https://developer.android.com/reference/java/security/KeyStore.PrivateKeyEntry.html) /// /// Required feature: java-security-KeyStore_PrivateKeyEntry #[cfg(any(feature = "all", feature = "java-security-KeyStore_PrivateKeyEntry"))] public final class KeyStore_PrivateKeyEntry extends crate::java::lang::Object, implements crate::java::security::KeyStore_Entry { // // Not emitting: Passing in arrays of objects is not yet supported // /// <init> // /// // /// Required features: "java-security-PrivateKey", "java-security-cert-Certificate" // #[cfg(any(feature = "all", all(feature = "java-security-PrivateKey", feature = "java-security-cert-Certificate")))] // pub fn new_private_key_certificate_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::PrivateKey>>, arg1: Array { levels: 1, inner: Class(Id("java/security/cert/Certificate")) }) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::java::security::KeyStore_PrivateKeyEntry>> { // // class.path == "java/security/KeyStore$PrivateKeyEntry", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/KeyStore$PrivateKeyEntry\0", "<init>\0", "(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;)V\0"); // __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Passing in arrays of objects is not yet supported // /// <init> // /// // /// Required features: "java-security-PrivateKey", "java-security-cert-Certificate", "java-util-Set" // #[cfg(any(feature = "all", all(feature = "java-security-PrivateKey", feature = "java-security-cert-Certificate", feature = "java-util-Set")))] // pub fn new_private_key_certificate_array_set<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::PrivateKey>>, arg1: Array { levels: 1, inner: Class(Id("java/security/cert/Certificate")) }, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Set>>) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::java::security::KeyStore_PrivateKeyEntry>> { // // class.path == "java/security/KeyStore$PrivateKeyEntry", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;Ljava/util/Set;)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())]; // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/KeyStore$PrivateKeyEntry\0", "<init>\0", "(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;Ljava/util/Set;)V\0"); // __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [getPrivateKey](https://developer.android.com/reference/java/security/KeyStore.PrivateKeyEntry.html#getPrivateKey()) /// /// Required features: "java-security-PrivateKey" #[cfg(any(feature = "all", all(feature = "java-security-PrivateKey")))] pub fn get_private_key<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::PrivateKey>>> { // class.path == "java/security/KeyStore$PrivateKeyEntry", java.flags == PUBLIC, .name == "getPrivateKey", .descriptor == "()Ljava/security/PrivateKey;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/KeyStore$PrivateKeyEntry\0", "getPrivateKey\0", "()Ljava/security/PrivateKey;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Returning arrays of objects not yet supported // /// [getCertificateChain](https://developer.android.com/reference/java/security/KeyStore.PrivateKeyEntry.html#getCertificateChain()) // /// // /// Required features: "java-security-cert-Certificate" // #[cfg(any(feature = "all", all(feature = "java-security-cert-Certificate")))] // pub fn get_certificate_chain<'env>(&'env self) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("java/security/cert/Certificate")) }> { // // class.path == "java/security/KeyStore$PrivateKeyEntry", java.flags == PUBLIC, .name == "getCertificateChain", .descriptor == "()[Ljava/security/cert/Certificate;" // unsafe { // let __jni_args = []; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/KeyStore$PrivateKeyEntry\0", "getCertificateChain\0", "()[Ljava/security/cert/Certificate;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } /// [getCertificate](https://developer.android.com/reference/java/security/KeyStore.PrivateKeyEntry.html#getCertificate()) /// /// Required features: "java-security-cert-Certificate" #[cfg(any(feature = "all", all(feature = "java-security-cert-Certificate")))] pub fn get_certificate<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::cert::Certificate>>> { // class.path == "java/security/KeyStore$PrivateKeyEntry", java.flags == PUBLIC, .name == "getCertificate", .descriptor == "()Ljava/security/cert/Certificate;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/KeyStore$PrivateKeyEntry\0", "getCertificate\0", "()Ljava/security/cert/Certificate;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [getAttributes](https://developer.android.com/reference/java/security/KeyStore.PrivateKeyEntry.html#getAttributes()) /// /// Required features: "java-util-Set" #[cfg(any(feature = "all", all(feature = "java-util-Set")))] pub fn get_attributes<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Set>>> { // class.path == "java/security/KeyStore$PrivateKeyEntry", java.flags == PUBLIC, .name == "getAttributes", .descriptor == "()Ljava/util/Set;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/KeyStore$PrivateKeyEntry\0", "getAttributes\0", "()Ljava/util/Set;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [toString](https://developer.android.com/reference/java/security/KeyStore.PrivateKeyEntry.html#toString()) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn to_string<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "java/security/KeyStore$PrivateKeyEntry", java.flags == PUBLIC, .name == "toString", .descriptor == "()Ljava/lang/String;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/KeyStore$PrivateKeyEntry\0", "toString\0", "()Ljava/lang/String;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } } }