#[cfg(any(feature = "all", feature = "org-apache-http-client-CredentialsProvider"))]
__jni_bindgen! {
#[deprecated] public interface CredentialsProvider ("org/apache/http/client/CredentialsProvider") extends crate::java::lang::Object {
#[cfg(any(feature = "all", all(feature = "org-apache-http-auth-AuthScope", feature = "org-apache-http-auth-Credentials")))]
pub fn setCredentials<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::auth::AuthScope>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::auth::Credentials>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/client/CredentialsProvider\0", "setCredentials\0", "(Lorg/apache/http/auth/AuthScope;Lorg/apache/http/auth/Credentials;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "org-apache-http-auth-AuthScope", feature = "org-apache-http-auth-Credentials")))]
pub fn getCredentials<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::auth::AuthScope>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::auth::Credentials>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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("org/apache/http/client/CredentialsProvider\0", "getCredentials\0", "(Lorg/apache/http/auth/AuthScope;)Lorg/apache/http/auth/Credentials;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn clear<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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("org/apache/http/client/CredentialsProvider\0", "clear\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}