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 = "android-security-keystore-KeyProtection_Builder"))]
__jni_bindgen! {
    /// public final class [KeyProtection.Builder](https://developer.android.com/reference/android/security/keystore/KeyProtection.Builder.html)
    ///
    /// Required feature: "android-security-keystore-KeyProtection_Builder"
    public final class KeyProtection_Builder ("android/security/keystore/KeyProtection$Builder") extends crate::java::lang::Object {

        /// [Builder](https://developer.android.com/reference/android/security/keystore/KeyProtection.Builder.html#Builder(int))
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::security::keystore::KeyProtection_Builder>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/security/keystore/KeyProtection$Builder", java.flags == PUBLIC, .name == "<init>", .descriptor == "(I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/security/keystore/KeyProtection$Builder\0", "<init>\0", "(I)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

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

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

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

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

        /// [setRandomizedEncryptionRequired](https://developer.android.com/reference/android/security/keystore/KeyProtection.Builder.html#setRandomizedEncryptionRequired(boolean))
        ///
        /// Required features: "android-security-keystore-KeyProtection_Builder"
        #[cfg(any(feature = "all", all(feature = "android-security-keystore-KeyProtection_Builder")))]
        pub fn setRandomizedEncryptionRequired<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::security::keystore::KeyProtection_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/security/keystore/KeyProtection$Builder", java.flags == PUBLIC, .name == "setRandomizedEncryptionRequired", .descriptor == "(Z)Landroid/security/keystore/KeyProtection$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/security/keystore/KeyProtection$Builder\0", "setRandomizedEncryptionRequired\0", "(Z)Landroid/security/keystore/KeyProtection$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setUserAuthenticationRequired](https://developer.android.com/reference/android/security/keystore/KeyProtection.Builder.html#setUserAuthenticationRequired(boolean))
        ///
        /// Required features: "android-security-keystore-KeyProtection_Builder"
        #[cfg(any(feature = "all", all(feature = "android-security-keystore-KeyProtection_Builder")))]
        pub fn setUserAuthenticationRequired<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::security::keystore::KeyProtection_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/security/keystore/KeyProtection$Builder", java.flags == PUBLIC, .name == "setUserAuthenticationRequired", .descriptor == "(Z)Landroid/security/keystore/KeyProtection$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/security/keystore/KeyProtection$Builder\0", "setUserAuthenticationRequired\0", "(Z)Landroid/security/keystore/KeyProtection$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setUserAuthenticationValidityDurationSeconds](https://developer.android.com/reference/android/security/keystore/KeyProtection.Builder.html#setUserAuthenticationValidityDurationSeconds(int))
        ///
        /// Required features: "android-security-keystore-KeyProtection_Builder"
        #[cfg(any(feature = "all", all(feature = "android-security-keystore-KeyProtection_Builder")))]
        pub fn setUserAuthenticationValidityDurationSeconds<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::security::keystore::KeyProtection_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/security/keystore/KeyProtection$Builder", java.flags == PUBLIC, .name == "setUserAuthenticationValidityDurationSeconds", .descriptor == "(I)Landroid/security/keystore/KeyProtection$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/security/keystore/KeyProtection$Builder\0", "setUserAuthenticationValidityDurationSeconds\0", "(I)Landroid/security/keystore/KeyProtection$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setUserAuthenticationValidWhileOnBody](https://developer.android.com/reference/android/security/keystore/KeyProtection.Builder.html#setUserAuthenticationValidWhileOnBody(boolean))
        ///
        /// Required features: "android-security-keystore-KeyProtection_Builder"
        #[cfg(any(feature = "all", all(feature = "android-security-keystore-KeyProtection_Builder")))]
        pub fn setUserAuthenticationValidWhileOnBody<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::security::keystore::KeyProtection_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/security/keystore/KeyProtection$Builder", java.flags == PUBLIC, .name == "setUserAuthenticationValidWhileOnBody", .descriptor == "(Z)Landroid/security/keystore/KeyProtection$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/security/keystore/KeyProtection$Builder\0", "setUserAuthenticationValidWhileOnBody\0", "(Z)Landroid/security/keystore/KeyProtection$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setInvalidatedByBiometricEnrollment](https://developer.android.com/reference/android/security/keystore/KeyProtection.Builder.html#setInvalidatedByBiometricEnrollment(boolean))
        ///
        /// Required features: "android-security-keystore-KeyProtection_Builder"
        #[cfg(any(feature = "all", all(feature = "android-security-keystore-KeyProtection_Builder")))]
        pub fn setInvalidatedByBiometricEnrollment<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::security::keystore::KeyProtection_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/security/keystore/KeyProtection$Builder", java.flags == PUBLIC, .name == "setInvalidatedByBiometricEnrollment", .descriptor == "(Z)Landroid/security/keystore/KeyProtection$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/security/keystore/KeyProtection$Builder\0", "setInvalidatedByBiometricEnrollment\0", "(Z)Landroid/security/keystore/KeyProtection$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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