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
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


__jni_bindgen! {
    /// public class [CodeSource](https://developer.android.com/reference/java/security/CodeSource.html)
    ///
    /// Required feature: java-security-CodeSource
    #[cfg(any(feature = "all", feature = "java-security-CodeSource"))]
    public class CodeSource extends crate::java::lang::Object, implements crate::java::io::Serializable {

        // // Not emitting: Passing in arrays of objects is not yet supported
        // /// <init>
        // ///
        // /// Required features: "java-net-URL", "java-security-cert-Certificate"
        // #[cfg(any(feature = "all", all(feature = "java-net-URL", feature = "java-security-cert-Certificate")))]
        // pub fn new_url_certificate_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::URL>>, arg1: Array { levels: 1, inner: Class(Id("java/security/cert/Certificate")) }) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::java::security::CodeSource>> {
        //     // class.path == "java/security/CodeSource", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/net/URL;[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/CodeSource\0", "<init>\0", "(Ljava/net/URL;[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-net-URL", "java-security-CodeSigner"
        // #[cfg(any(feature = "all", all(feature = "java-net-URL", feature = "java-security-CodeSigner")))]
        // pub fn new_url_code_signer_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::URL>>, arg1: Array { levels: 1, inner: Class(Id("java/security/CodeSigner")) }) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::java::security::CodeSource>> {
        //     // class.path == "java/security/CodeSource", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/net/URL;[Ljava/security/CodeSigner;)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/CodeSource\0", "<init>\0", "(Ljava/net/URL;[Ljava/security/CodeSigner;)V\0");
        //         __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }

        /// [getLocation](https://developer.android.com/reference/java/security/CodeSource.html#getLocation())
        ///
        /// Required features: "java-net-URL"
        #[cfg(any(feature = "all", all(feature = "java-net-URL")))]
        pub fn get_location<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::net::URL>>> {
            // class.path == "java/security/CodeSource", java.flags == PUBLIC | FINAL, .name == "getLocation", .descriptor == "()Ljava/net/URL;"
            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/CodeSource\0", "getLocation\0", "()Ljava/net/URL;\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
        // /// [getCertificates](https://developer.android.com/reference/java/security/CodeSource.html#getCertificates())
        // ///
        // /// Required features: "java-security-cert-Certificate"
        // #[cfg(any(feature = "all", all(feature = "java-security-cert-Certificate")))]
        // pub fn get_certificates<'env>(&'env self) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("java/security/cert/Certificate")) }> {
        //     // class.path == "java/security/CodeSource", java.flags == PUBLIC | FINAL, .name == "getCertificates", .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/CodeSource\0", "getCertificates\0", "()[Ljava/security/cert/Certificate;\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
        // /// [getCodeSigners](https://developer.android.com/reference/java/security/CodeSource.html#getCodeSigners())
        // ///
        // /// Required features: "java-security-CodeSigner"
        // #[cfg(any(feature = "all", all(feature = "java-security-CodeSigner")))]
        // pub fn get_code_signers<'env>(&'env self) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("java/security/CodeSigner")) }> {
        //     // class.path == "java/security/CodeSource", java.flags == PUBLIC | FINAL, .name == "getCodeSigners", .descriptor == "()[Ljava/security/CodeSigner;"
        //     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/CodeSource\0", "getCodeSigners\0", "()[Ljava/security/CodeSigner;\0");
        //         __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
        //     }
        // }

        /// [implies](https://developer.android.com/reference/java/security/CodeSource.html#implies(java,%2520security,%2520CodeSource))
        ///
        /// Required features: "java-security-CodeSource"
        #[cfg(any(feature = "all", all(feature = "java-security-CodeSource")))]
        pub fn implies<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::CodeSource>>) -> __jni_bindgen::Result<bool> {
            // class.path == "java/security/CodeSource", java.flags == PUBLIC, .name == "implies", .descriptor == "(Ljava/security/CodeSource;)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/CodeSource\0", "implies\0", "(Ljava/security/CodeSource;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}