// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-security-cert-CertPathValidatorException"))]
__jni_bindgen! {
/// public class [CertPathValidatorException](https://developer.android.com/reference/java/security/cert/CertPathValidatorException.html)
///
/// Required feature: "java-security-cert-CertPathValidatorException"
public class CertPathValidatorException ("java/security/cert/CertPathValidatorException") extends crate::java::security::GeneralSecurityException {
/// [CertPathValidatorException](https://developer.android.com/reference/java/security/cert/CertPathValidatorException.html#CertPathValidatorException(java.lang.String,%20java.lang.Throwable,%20java.security.cert.CertPath,%20int))
///
/// Required features: "java-lang-String", "java-lang-Throwable", "java-security-cert-CertPath"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-lang-Throwable", feature = "java-security-cert-CertPath")))]
pub fn new_String_Throwable_CertPath_int<'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::Throwable>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::cert::CertPath>>, arg3: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::cert::CertPathValidatorException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertPathValidatorException", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/Throwable;Ljava/security/cert/CertPath;I)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)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/cert/CertPathValidatorException\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/Throwable;Ljava/security/cert/CertPath;I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [CertPathValidatorException](https://developer.android.com/reference/java/security/cert/CertPathValidatorException.html#CertPathValidatorException(java.lang.String,%20java.lang.Throwable))
///
/// Required features: "java-lang-String", "java-lang-Throwable"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-lang-Throwable")))]
pub fn new_String_Throwable<'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::Throwable>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::cert::CertPathValidatorException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertPathValidatorException", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/Throwable;)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/cert/CertPathValidatorException\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/Throwable;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [CertPathValidatorException](https://developer.android.com/reference/java/security/cert/CertPathValidatorException.html#CertPathValidatorException(java.lang.Throwable))
///
/// Required features: "java-lang-Throwable"
#[cfg(any(feature = "all", all(feature = "java-lang-Throwable")))]
pub fn new_Throwable<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Throwable>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::cert::CertPathValidatorException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertPathValidatorException", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/Throwable;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/cert/CertPathValidatorException\0", "<init>\0", "(Ljava/lang/Throwable;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [CertPathValidatorException](https://developer.android.com/reference/java/security/cert/CertPathValidatorException.html#CertPathValidatorException(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::cert::CertPathValidatorException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertPathValidatorException", 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/cert/CertPathValidatorException\0", "<init>\0", "(Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [CertPathValidatorException](https://developer.android.com/reference/java/security/cert/CertPathValidatorException.html#CertPathValidatorException())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::cert::CertPathValidatorException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertPathValidatorException", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/cert/CertPathValidatorException\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getCertPath](https://developer.android.com/reference/java/security/cert/CertPathValidatorException.html#getCertPath())
///
/// Required features: "java-security-cert-CertPath"
#[cfg(any(feature = "all", all(feature = "java-security-cert-CertPath")))]
pub fn getCertPath<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::cert::CertPath>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertPathValidatorException", java.flags == PUBLIC, .name == "getCertPath", .descriptor == "()Ljava/security/cert/CertPath;"
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/cert/CertPathValidatorException\0", "getCertPath\0", "()Ljava/security/cert/CertPath;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getIndex](https://developer.android.com/reference/java/security/cert/CertPathValidatorException.html#getIndex())
pub fn getIndex<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertPathValidatorException", java.flags == PUBLIC, .name == "getIndex", .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/cert/CertPathValidatorException\0", "getIndex\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}