// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-security-cert-CertStore"))]
__jni_bindgen! {
/// public class [CertStore](https://developer.android.com/reference/java/security/cert/CertStore.html)
///
/// Required feature: "java-security-cert-CertStore"
public class CertStore ("java/security/cert/CertStore") extends crate::java::lang::Object {
/// [getInstance](https://developer.android.com/reference/java/security/cert/CertStore.html#getInstance(java.lang.String,%20java.security.cert.CertStoreParameters))
///
/// Required features: "java-lang-String", "java-security-cert-CertStore", "java-security-cert-CertStoreParameters"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-cert-CertStore", feature = "java-security-cert-CertStoreParameters")))]
pub fn getInstance_String_CertStoreParameters<'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::cert::CertStoreParameters>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::cert::CertStore>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertStore", java.flags == PUBLIC | STATIC, .name == "getInstance", .descriptor == "(Ljava/lang/String;Ljava/security/cert/CertStoreParameters;)Ljava/security/cert/CertStore;"
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_static_method("java/security/cert/CertStore\0", "getInstance\0", "(Ljava/lang/String;Ljava/security/cert/CertStoreParameters;)Ljava/security/cert/CertStore;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstance](https://developer.android.com/reference/java/security/cert/CertStore.html#getInstance(java.lang.String,%20java.security.cert.CertStoreParameters,%20java.lang.String))
///
/// Required features: "java-lang-String", "java-security-cert-CertStore", "java-security-cert-CertStoreParameters"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-cert-CertStore", feature = "java-security-cert-CertStoreParameters")))]
pub fn getInstance_String_CertStoreParameters_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>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::cert::CertStoreParameters>>, arg2: 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::cert::CertStore>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertStore", java.flags == PUBLIC | STATIC, .name == "getInstance", .descriptor == "(Ljava/lang/String;Ljava/security/cert/CertStoreParameters;Ljava/lang/String;)Ljava/security/cert/CertStore;"
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())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/security/cert/CertStore\0", "getInstance\0", "(Ljava/lang/String;Ljava/security/cert/CertStoreParameters;Ljava/lang/String;)Ljava/security/cert/CertStore;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstance](https://developer.android.com/reference/java/security/cert/CertStore.html#getInstance(java.lang.String,%20java.security.cert.CertStoreParameters,%20java.security.Provider))
///
/// Required features: "java-lang-String", "java-security-Provider", "java-security-cert-CertStore", "java-security-cert-CertStoreParameters"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-Provider", feature = "java-security-cert-CertStore", feature = "java-security-cert-CertStoreParameters")))]
pub fn getInstance_String_CertStoreParameters_Provider<'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::cert::CertStoreParameters>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Provider>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::cert::CertStore>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertStore", java.flags == PUBLIC | STATIC, .name == "getInstance", .descriptor == "(Ljava/lang/String;Ljava/security/cert/CertStoreParameters;Ljava/security/Provider;)Ljava/security/cert/CertStore;"
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())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/security/cert/CertStore\0", "getInstance\0", "(Ljava/lang/String;Ljava/security/cert/CertStoreParameters;Ljava/security/Provider;)Ljava/security/cert/CertStore;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getType](https://developer.android.com/reference/java/security/cert/CertStore.html#getType())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getType<'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/cert/CertStore", java.flags == PUBLIC | FINAL, .name == "getType", .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/cert/CertStore\0", "getType\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getProvider](https://developer.android.com/reference/java/security/cert/CertStore.html#getProvider())
///
/// Required features: "java-security-Provider"
#[cfg(any(feature = "all", all(feature = "java-security-Provider")))]
pub fn getProvider<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::Provider>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertStore", java.flags == PUBLIC | FINAL, .name == "getProvider", .descriptor == "()Ljava/security/Provider;"
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/CertStore\0", "getProvider\0", "()Ljava/security/Provider;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCertStoreParameters](https://developer.android.com/reference/java/security/cert/CertStore.html#getCertStoreParameters())
///
/// Required features: "java-security-cert-CertStoreParameters"
#[cfg(any(feature = "all", all(feature = "java-security-cert-CertStoreParameters")))]
pub fn getCertStoreParameters<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::cert::CertStoreParameters>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertStore", java.flags == PUBLIC | FINAL, .name == "getCertStoreParameters", .descriptor == "()Ljava/security/cert/CertStoreParameters;"
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/CertStore\0", "getCertStoreParameters\0", "()Ljava/security/cert/CertStoreParameters;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCertificates](https://developer.android.com/reference/java/security/cert/CertStore.html#getCertificates(java.security.cert.CertSelector))
///
/// Required features: "java-security-cert-CertSelector", "java-util-Collection"
#[cfg(any(feature = "all", all(feature = "java-security-cert-CertSelector", feature = "java-util-Collection")))]
pub fn getCertificates<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::cert::CertSelector>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Collection>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertStore", java.flags == PUBLIC | FINAL, .name == "getCertificates", .descriptor == "(Ljava/security/cert/CertSelector;)Ljava/util/Collection;"
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/cert/CertStore\0", "getCertificates\0", "(Ljava/security/cert/CertSelector;)Ljava/util/Collection;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCRLs](https://developer.android.com/reference/java/security/cert/CertStore.html#getCRLs(java.security.cert.CRLSelector))
///
/// Required features: "java-security-cert-CRLSelector", "java-util-Collection"
#[cfg(any(feature = "all", all(feature = "java-security-cert-CRLSelector", feature = "java-util-Collection")))]
pub fn getCRLs<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::cert::CRLSelector>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Collection>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertStore", java.flags == PUBLIC | FINAL, .name == "getCRLs", .descriptor == "(Ljava/security/cert/CRLSelector;)Ljava/util/Collection;"
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/cert/CertStore\0", "getCRLs\0", "(Ljava/security/cert/CRLSelector;)Ljava/util/Collection;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDefaultType](https://developer.android.com/reference/java/security/cert/CertStore.html#getDefaultType())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getDefaultType<'env>(__jni_env: &'env __jni_bindgen::Env) -> __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/cert/CertStore", java.flags == PUBLIC | STATIC | FINAL, .name == "getDefaultType", .descriptor == "()Ljava/lang/String;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/security/cert/CertStore\0", "getDefaultType\0", "()Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
}
}