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


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

        /// <init>
        ///
        /// Required features: "java-lang-String", "java-security-spec-AlgorithmParameterSpec", "javax-crypto-spec-PSource"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-spec-AlgorithmParameterSpec", feature = "javax-crypto-spec-PSource")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::spec::AlgorithmParameterSpec>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::javax::crypto::spec::PSource>>) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::javax::crypto::spec::OAEPParameterSpec>> {
            // class.path == "javax/crypto/spec/OAEPParameterSpec", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;Ljavax/crypto/spec/PSource;)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()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/spec/OAEPParameterSpec\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;Ljavax/crypto/spec/PSource;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getDigestAlgorithm](https://developer.android.com/reference/javax/crypto/spec/OAEPParameterSpec.html#getDigestAlgorithm())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn get_digest_algorithm<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> {
            // class.path == "javax/crypto/spec/OAEPParameterSpec", java.flags == PUBLIC, .name == "getDigestAlgorithm", .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("javax/crypto/spec/OAEPParameterSpec\0", "getDigestAlgorithm\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getMGFAlgorithm](https://developer.android.com/reference/javax/crypto/spec/OAEPParameterSpec.html#getMGFAlgorithm())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn get_mgf_algorithm<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> {
            // class.path == "javax/crypto/spec/OAEPParameterSpec", java.flags == PUBLIC, .name == "getMGFAlgorithm", .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("javax/crypto/spec/OAEPParameterSpec\0", "getMGFAlgorithm\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getMGFParameters](https://developer.android.com/reference/javax/crypto/spec/OAEPParameterSpec.html#getMGFParameters())
        ///
        /// Required features: "java-security-spec-AlgorithmParameterSpec"
        #[cfg(any(feature = "all", all(feature = "java-security-spec-AlgorithmParameterSpec")))]
        pub fn get_mgf_parameters<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::spec::AlgorithmParameterSpec>>> {
            // class.path == "javax/crypto/spec/OAEPParameterSpec", java.flags == PUBLIC, .name == "getMGFParameters", .descriptor == "()Ljava/security/spec/AlgorithmParameterSpec;"
            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/OAEPParameterSpec\0", "getMGFParameters\0", "()Ljava/security/spec/AlgorithmParameterSpec;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getPSource](https://developer.android.com/reference/javax/crypto/spec/OAEPParameterSpec.html#getPSource())
        ///
        /// Required features: "javax-crypto-spec-PSource"
        #[cfg(any(feature = "all", all(feature = "javax-crypto-spec-PSource")))]
        pub fn get_p_source<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::javax::crypto::spec::PSource>>> {
            // class.path == "javax/crypto/spec/OAEPParameterSpec", java.flags == PUBLIC, .name == "getPSource", .descriptor == "()Ljavax/crypto/spec/PSource;"
            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/OAEPParameterSpec\0", "getPSource\0", "()Ljavax/crypto/spec/PSource;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        // // Not emitting: Failed to mangle method name
        // // Not emitting: Non-public method
        // // Not emitting: Static class constructor - never needs to be called by Rust.
        // /// <clinit>
        // fn <clinit><'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
        //     // class.path == "javax/crypto/spec/OAEPParameterSpec", java.flags == STATIC, .name == "<clinit>", .descriptor == "()V"
        //     unsafe {
        //         let __jni_args = [];
        //         let (__jni_class, __jni_method) = __jni_env.require_class_static_method("javax/crypto/spec/OAEPParameterSpec\0", "<clinit>\0", "()V\0");
        //         __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }

        // // Not emitting: Haven't yet implemented object field types
        // /// **get** public static final [DEFAULT](https://developer.android.com/reference/javax/crypto/spec/OAEPParameterSpec.html#DEFAULT)
        // ///
        // /// Required feature: javax-crypto-spec-OAEPParameterSpec
        // #[cfg(any(feature = "all", feature = "javax-crypto-spec-OAEPParameterSpec"))]
        // pub fn default<'env>(env: &'env __jni_bindgen::Env) -> javax/crypto/spec/OAEPParameterSpec {
        //     unsafe {
        //         let (class, field) = env.require_class_static_field("javax/crypto/spec/OAEPParameterSpec\0", "DEFAULT\0", "Ljavax/crypto/spec/OAEPParameterSpec;\0");
        //         env.get_static_object_field(class, field)
        //     }
        // }
    }
}