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


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

        /// <init>
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::javax::crypto::spec::DHGenParameterSpec>> {
            // class.path == "javax/crypto/spec/DHGenParameterSpec", java.flags == PUBLIC, .name == "<init>", .descriptor == "(II)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/spec/DHGenParameterSpec\0", "<init>\0", "(II)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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