jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "java-security-IdentityScope"))]
__jni_bindgen! {
    /// public class [IdentityScope](https://developer.android.com/reference/java/security/IdentityScope.html)
    ///
    /// Required feature: "java-security-IdentityScope"
    #[deprecated] public class IdentityScope ("java/security/IdentityScope") extends crate::java::security::Identity {

        /// [IdentityScope](https://developer.android.com/reference/java/security/IdentityScope.html#IdentityScope(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn new_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::IdentityScope>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/IdentityScope", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/IdentityScope\0", "<init>\0", "(Ljava/lang/String;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [IdentityScope](https://developer.android.com/reference/java/security/IdentityScope.html#IdentityScope(java.lang.String,%20java.security.IdentityScope))
        ///
        /// Required features: "java-lang-String", "java-security-IdentityScope"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-IdentityScope")))]
        pub fn new_String_IdentityScope<'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::security::IdentityScope>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::IdentityScope>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/IdentityScope", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/security/IdentityScope;)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/IdentityScope\0", "<init>\0", "(Ljava/lang/String;Ljava/security/IdentityScope;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getSystemScope](https://developer.android.com/reference/java/security/IdentityScope.html#getSystemScope())
        ///
        /// Required features: "java-security-IdentityScope"
        #[cfg(any(feature = "all", all(feature = "java-security-IdentityScope")))]
        pub fn getSystemScope<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::IdentityScope>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/IdentityScope", java.flags == PUBLIC | STATIC, .name == "getSystemScope", .descriptor == "()Ljava/security/IdentityScope;"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/security/IdentityScope\0", "getSystemScope\0", "()Ljava/security/IdentityScope;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [size](https://developer.android.com/reference/java/security/IdentityScope.html#size())
        pub fn size<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/IdentityScope", java.flags == PUBLIC | ABSTRACT, .name == "size", .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("java/security/IdentityScope\0", "size\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getIdentity](https://developer.android.com/reference/java/security/IdentityScope.html#getIdentity(java.lang.String))
        ///
        /// Required features: "java-lang-String", "java-security-Identity"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-Identity")))]
        pub fn getIdentity_String<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::Identity>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/IdentityScope", java.flags == PUBLIC | ABSTRACT, .name == "getIdentity", .descriptor == "(Ljava/lang/String;)Ljava/security/Identity;"
            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/IdentityScope\0", "getIdentity\0", "(Ljava/lang/String;)Ljava/security/Identity;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getIdentity](https://developer.android.com/reference/java/security/IdentityScope.html#getIdentity(java.security.Principal))
        ///
        /// Required features: "java-security-Identity", "java-security-Principal"
        #[cfg(any(feature = "all", all(feature = "java-security-Identity", feature = "java-security-Principal")))]
        pub fn getIdentity_Principal<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Principal>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::Identity>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/IdentityScope", java.flags == PUBLIC, .name == "getIdentity", .descriptor == "(Ljava/security/Principal;)Ljava/security/Identity;"
            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/IdentityScope\0", "getIdentity\0", "(Ljava/security/Principal;)Ljava/security/Identity;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getIdentity](https://developer.android.com/reference/java/security/IdentityScope.html#getIdentity(java.security.PublicKey))
        ///
        /// Required features: "java-security-Identity", "java-security-PublicKey"
        #[cfg(any(feature = "all", all(feature = "java-security-Identity", feature = "java-security-PublicKey")))]
        pub fn getIdentity_PublicKey<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::PublicKey>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::Identity>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/IdentityScope", java.flags == PUBLIC | ABSTRACT, .name == "getIdentity", .descriptor == "(Ljava/security/PublicKey;)Ljava/security/Identity;"
            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/IdentityScope\0", "getIdentity\0", "(Ljava/security/PublicKey;)Ljava/security/Identity;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addIdentity](https://developer.android.com/reference/java/security/IdentityScope.html#addIdentity(java.security.Identity))
        ///
        /// Required features: "java-security-Identity"
        #[cfg(any(feature = "all", all(feature = "java-security-Identity")))]
        pub fn addIdentity<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Identity>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/IdentityScope", java.flags == PUBLIC | ABSTRACT, .name == "addIdentity", .descriptor == "(Ljava/security/Identity;)V"
            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/IdentityScope\0", "addIdentity\0", "(Ljava/security/Identity;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [removeIdentity](https://developer.android.com/reference/java/security/IdentityScope.html#removeIdentity(java.security.Identity))
        ///
        /// Required features: "java-security-Identity"
        #[cfg(any(feature = "all", all(feature = "java-security-Identity")))]
        pub fn removeIdentity<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Identity>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/IdentityScope", java.flags == PUBLIC | ABSTRACT, .name == "removeIdentity", .descriptor == "(Ljava/security/Identity;)V"
            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/IdentityScope\0", "removeIdentity\0", "(Ljava/security/Identity;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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