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


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

        /// <init>
        pub fn new_char_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::CharArray   >>) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::javax::crypto::spec::PBEKeySpec>> {
            // class.path == "javax/crypto/spec/PBEKeySpec", java.flags == PUBLIC, .name == "<init>", .descriptor == "([C)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/spec/PBEKeySpec\0", "<init>\0", "([C)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// <init>
        pub fn new_char_array_byte_array_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::CharArray   >>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray   >>, arg2: i32, arg3: i32) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::javax::crypto::spec::PBEKeySpec>> {
            // class.path == "javax/crypto/spec/PBEKeySpec", java.flags == PUBLIC, .name == "<init>", .descriptor == "([C[BII)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), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/spec/PBEKeySpec\0", "<init>\0", "([C[BII)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// <init>
        pub fn new_char_array_byte_array_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::CharArray   >>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray   >>, arg2: i32) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::javax::crypto::spec::PBEKeySpec>> {
            // class.path == "javax/crypto/spec/PBEKeySpec", java.flags == PUBLIC, .name == "<init>", .descriptor == "([C[BI)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)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/spec/PBEKeySpec\0", "<init>\0", "([C[BI)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [clearPassword](https://developer.android.com/reference/javax/crypto/spec/PBEKeySpec.html#clearPassword())
        pub fn clear_password<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "javax/crypto/spec/PBEKeySpec", java.flags == PUBLIC | FINAL, .name == "clearPassword", .descriptor == "()V"
            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("javax/crypto/spec/PBEKeySpec\0", "clearPassword\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getPassword](https://developer.android.com/reference/javax/crypto/spec/PBEKeySpec.html#getPassword())
        pub fn get_password<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::CharArray   >>> {
            // class.path == "javax/crypto/spec/PBEKeySpec", java.flags == PUBLIC | FINAL, .name == "getPassword", .descriptor == "()[C"
            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("javax/crypto/spec/PBEKeySpec\0", "getPassword\0", "()[C\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getSalt](https://developer.android.com/reference/javax/crypto/spec/PBEKeySpec.html#getSalt())
        pub fn get_salt<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray   >>> {
            // class.path == "javax/crypto/spec/PBEKeySpec", java.flags == PUBLIC | FINAL, .name == "getSalt", .descriptor == "()[B"
            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("javax/crypto/spec/PBEKeySpec\0", "getSalt\0", "()[B\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getIterationCount](https://developer.android.com/reference/javax/crypto/spec/PBEKeySpec.html#getIterationCount())
        pub fn get_iteration_count<'env>(&'env self) -> __jni_bindgen::Result<i32> {
            // class.path == "javax/crypto/spec/PBEKeySpec", java.flags == PUBLIC | FINAL, .name == "getIterationCount", .descriptor == "()I"
            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("javax/crypto/spec/PBEKeySpec\0", "getIterationCount\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getKeyLength](https://developer.android.com/reference/javax/crypto/spec/PBEKeySpec.html#getKeyLength())
        pub fn get_key_length<'env>(&'env self) -> __jni_bindgen::Result<i32> {
            // class.path == "javax/crypto/spec/PBEKeySpec", java.flags == PUBLIC | FINAL, .name == "getKeyLength", .descriptor == "()I"
            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("javax/crypto/spec/PBEKeySpec\0", "getKeyLength\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}