// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-net-Authenticator"))]
__jni_bindgen! {
/// public class [Authenticator](https://developer.android.com/reference/java/net/Authenticator.html)
///
/// Required feature: "java-net-Authenticator"
public class Authenticator ("java/net/Authenticator") extends crate::java::lang::Object {
/// [Authenticator](https://developer.android.com/reference/java/net/Authenticator.html#Authenticator())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::net::Authenticator>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/Authenticator", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/net/Authenticator\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [requestPasswordAuthentication](https://developer.android.com/reference/java/net/Authenticator.html#requestPasswordAuthentication(java.net.InetAddress,%20int,%20java.lang.String,%20java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String", "java-net-InetAddress", "java-net-PasswordAuthentication"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-net-InetAddress", feature = "java-net-PasswordAuthentication")))]
pub fn requestPasswordAuthentication_InetAddress_int_String_String_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::InetAddress>>, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg4: 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::net::PasswordAuthentication>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/Authenticator", java.flags == PUBLIC | STATIC | SYNCRONIZED, .name == "requestPasswordAuthentication", .descriptor == "(Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/net/PasswordAuthentication;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/Authenticator\0", "requestPasswordAuthentication\0", "(Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/net/PasswordAuthentication;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [setDefault](https://developer.android.com/reference/java/net/Authenticator.html#setDefault(java.net.Authenticator))
///
/// Required features: "java-net-Authenticator"
#[cfg(any(feature = "all", all(feature = "java-net-Authenticator")))]
pub fn setDefault<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::Authenticator>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/Authenticator", java.flags == PUBLIC | STATIC, .name == "setDefault", .descriptor == "(Ljava/net/Authenticator;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/Authenticator\0", "setDefault\0", "(Ljava/net/Authenticator;)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [requestPasswordAuthentication](https://developer.android.com/reference/java/net/Authenticator.html#requestPasswordAuthentication(java.lang.String,%20java.net.InetAddress,%20int,%20java.lang.String,%20java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String", "java-net-InetAddress", "java-net-PasswordAuthentication"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-net-InetAddress", feature = "java-net-PasswordAuthentication")))]
pub fn requestPasswordAuthentication_String_InetAddress_int_String_String_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::net::InetAddress>>, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg4: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg5: 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::net::PasswordAuthentication>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/Authenticator", java.flags == PUBLIC | STATIC | SYNCRONIZED, .name == "requestPasswordAuthentication", .descriptor == "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/net/PasswordAuthentication;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into()), __jni_bindgen::AsJValue::as_jvalue(&arg5.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/Authenticator\0", "requestPasswordAuthentication\0", "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/net/PasswordAuthentication;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [requestPasswordAuthentication](https://developer.android.com/reference/java/net/Authenticator.html#requestPasswordAuthentication(java.lang.String,%20java.net.InetAddress,%20int,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.net.URL,%20java.net.Authenticator.RequestorType))
///
/// Required features: "java-lang-String", "java-net-Authenticator_RequestorType", "java-net-InetAddress", "java-net-PasswordAuthentication", "java-net-URL"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-net-Authenticator_RequestorType", feature = "java-net-InetAddress", feature = "java-net-PasswordAuthentication", feature = "java-net-URL")))]
pub fn requestPasswordAuthentication_String_InetAddress_int_String_String_String_URL_RequestorType<'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::net::InetAddress>>, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg4: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg5: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg6: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::URL>>, arg7: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::Authenticator_RequestorType>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::net::PasswordAuthentication>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/net/Authenticator", java.flags == PUBLIC | STATIC, .name == "requestPasswordAuthentication", .descriptor == "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net/PasswordAuthentication;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into()), __jni_bindgen::AsJValue::as_jvalue(&arg5.into()), __jni_bindgen::AsJValue::as_jvalue(&arg6.into()), __jni_bindgen::AsJValue::as_jvalue(&arg7.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/Authenticator\0", "requestPasswordAuthentication\0", "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net/PasswordAuthentication;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
}
}