// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-security-SecureRandom"))]
__jni_bindgen! {
/// public class [SecureRandom](https://developer.android.com/reference/java/security/SecureRandom.html)
///
/// Required feature: "java-security-SecureRandom"
public class SecureRandom ("java/security/SecureRandom") extends crate::java::util::Random {
/// [SecureRandom](https://developer.android.com/reference/java/security/SecureRandom.html#SecureRandom())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::SecureRandom>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/SecureRandom", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/SecureRandom\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [SecureRandom](https://developer.android.com/reference/java/security/SecureRandom.html#SecureRandom(byte%5B%5D))
pub fn new_byte_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::SecureRandom>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/SecureRandom", java.flags == PUBLIC, .name == "<init>", .descriptor == "([B)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/SecureRandom\0", "<init>\0", "([B)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstance](https://developer.android.com/reference/java/security/SecureRandom.html#getInstance(java.lang.String))
///
/// Required features: "java-lang-String", "java-security-SecureRandom"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-SecureRandom")))]
pub fn getInstance_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::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::SecureRandom>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/SecureRandom", java.flags == PUBLIC | STATIC, .name == "getInstance", .descriptor == "(Ljava/lang/String;)Ljava/security/SecureRandom;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/security/SecureRandom\0", "getInstance\0", "(Ljava/lang/String;)Ljava/security/SecureRandom;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstance](https://developer.android.com/reference/java/security/SecureRandom.html#getInstance(java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String", "java-security-SecureRandom"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-SecureRandom")))]
pub fn getInstance_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::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::SecureRandom>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/SecureRandom", java.flags == PUBLIC | STATIC, .name == "getInstance", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/SecureRandom;"
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/SecureRandom\0", "getInstance\0", "(Ljava/lang/String;Ljava/lang/String;)Ljava/security/SecureRandom;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstance](https://developer.android.com/reference/java/security/SecureRandom.html#getInstance(java.lang.String,%20java.security.Provider))
///
/// Required features: "java-lang-String", "java-security-Provider", "java-security-SecureRandom"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-Provider", feature = "java-security-SecureRandom")))]
pub fn getInstance_String_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::Provider>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::SecureRandom>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/SecureRandom", java.flags == PUBLIC | STATIC, .name == "getInstance", .descriptor == "(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/SecureRandom;"
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/SecureRandom\0", "getInstance\0", "(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/SecureRandom;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getProvider](https://developer.android.com/reference/java/security/SecureRandom.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/SecureRandom", 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/SecureRandom\0", "getProvider\0", "()Ljava/security/Provider;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAlgorithm](https://developer.android.com/reference/java/security/SecureRandom.html#getAlgorithm())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getAlgorithm<'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/SecureRandom", java.flags == PUBLIC, .name == "getAlgorithm", .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/SecureRandom\0", "getAlgorithm\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setSeed](https://developer.android.com/reference/java/security/SecureRandom.html#setSeed(byte%5B%5D))
pub fn setSeed_byte_array<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/SecureRandom", java.flags == PUBLIC | SYNCRONIZED, .name == "setSeed", .descriptor == "([B)V"
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/SecureRandom\0", "setSeed\0", "([B)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setSeed](https://developer.android.com/reference/java/security/SecureRandom.html#setSeed(long))
pub fn setSeed_long<'env>(&'env self, arg0: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/SecureRandom", java.flags == PUBLIC, .name == "setSeed", .descriptor == "(J)V"
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("java/security/SecureRandom\0", "setSeed\0", "(J)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [nextBytes](https://developer.android.com/reference/java/security/SecureRandom.html#nextBytes(byte%5B%5D))
pub fn nextBytes<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/SecureRandom", java.flags == PUBLIC | SYNCRONIZED, .name == "nextBytes", .descriptor == "([B)V"
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/SecureRandom\0", "nextBytes\0", "([B)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSeed](https://developer.android.com/reference/java/security/SecureRandom.html#getSeed(int))
pub fn getSeed<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/SecureRandom", java.flags == PUBLIC | STATIC, .name == "getSeed", .descriptor == "(I)[B"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/security/SecureRandom\0", "getSeed\0", "(I)[B\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [generateSeed](https://developer.android.com/reference/java/security/SecureRandom.html#generateSeed(int))
pub fn generateSeed<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/SecureRandom", java.flags == PUBLIC, .name == "generateSeed", .descriptor == "(I)[B"
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("java/security/SecureRandom\0", "generateSeed\0", "(I)[B\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}