// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-security-spec-EllipticCurve"))]
__jni_bindgen! {
/// public class [EllipticCurve](https://developer.android.com/reference/java/security/spec/EllipticCurve.html)
///
/// Required feature: "java-security-spec-EllipticCurve"
public class EllipticCurve ("java/security/spec/EllipticCurve") extends crate::java::lang::Object {
/// [EllipticCurve](https://developer.android.com/reference/java/security/spec/EllipticCurve.html#EllipticCurve(java.security.spec.ECField,%20java.math.BigInteger,%20java.math.BigInteger,%20byte%5B%5D))
///
/// Required features: "java-math-BigInteger", "java-security-spec-ECField"
#[cfg(any(feature = "all", all(feature = "java-math-BigInteger", feature = "java-security-spec-ECField")))]
pub fn new_ECField_BigInteger_BigInteger_byte_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::spec::ECField>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::math::BigInteger>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::math::BigInteger>>, arg3: 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::spec::EllipticCurve>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/spec/EllipticCurve", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/security/spec/ECField;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)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.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/spec/EllipticCurve\0", "<init>\0", "(Ljava/security/spec/ECField;Ljava/math/BigInteger;Ljava/math/BigInteger;[B)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [EllipticCurve](https://developer.android.com/reference/java/security/spec/EllipticCurve.html#EllipticCurve(java.security.spec.ECField,%20java.math.BigInteger,%20java.math.BigInteger))
///
/// Required features: "java-math-BigInteger", "java-security-spec-ECField"
#[cfg(any(feature = "all", all(feature = "java-math-BigInteger", feature = "java-security-spec-ECField")))]
pub fn new_ECField_BigInteger_BigInteger<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::spec::ECField>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::math::BigInteger>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::math::BigInteger>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::spec::EllipticCurve>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/spec/EllipticCurve", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/security/spec/ECField;Ljava/math/BigInteger;Ljava/math/BigInteger;)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())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/spec/EllipticCurve\0", "<init>\0", "(Ljava/security/spec/ECField;Ljava/math/BigInteger;Ljava/math/BigInteger;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getA](https://developer.android.com/reference/java/security/spec/EllipticCurve.html#getA())
///
/// Required features: "java-math-BigInteger"
#[cfg(any(feature = "all", all(feature = "java-math-BigInteger")))]
pub fn getA<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::BigInteger>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/spec/EllipticCurve", java.flags == PUBLIC, .name == "getA", .descriptor == "()Ljava/math/BigInteger;"
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/spec/EllipticCurve\0", "getA\0", "()Ljava/math/BigInteger;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getB](https://developer.android.com/reference/java/security/spec/EllipticCurve.html#getB())
///
/// Required features: "java-math-BigInteger"
#[cfg(any(feature = "all", all(feature = "java-math-BigInteger")))]
pub fn getB<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::BigInteger>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/spec/EllipticCurve", java.flags == PUBLIC, .name == "getB", .descriptor == "()Ljava/math/BigInteger;"
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/spec/EllipticCurve\0", "getB\0", "()Ljava/math/BigInteger;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getField](https://developer.android.com/reference/java/security/spec/EllipticCurve.html#getField())
///
/// Required features: "java-security-spec-ECField"
#[cfg(any(feature = "all", all(feature = "java-security-spec-ECField")))]
pub fn getField<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::spec::ECField>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/spec/EllipticCurve", java.flags == PUBLIC, .name == "getField", .descriptor == "()Ljava/security/spec/ECField;"
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/spec/EllipticCurve\0", "getField\0", "()Ljava/security/spec/ECField;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSeed](https://developer.android.com/reference/java/security/spec/EllipticCurve.html#getSeed())
pub fn getSeed<'env>(&'env self) -> __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/spec/EllipticCurve", java.flags == PUBLIC, .name == "getSeed", .descriptor == "()[B"
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/spec/EllipticCurve\0", "getSeed\0", "()[B\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [equals](https://developer.android.com/reference/java/security/spec/EllipticCurve.html#equals(java.lang.Object))
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn equals<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/spec/EllipticCurve", java.flags == PUBLIC, .name == "equals", .descriptor == "(Ljava/lang/Object;)Z"
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/spec/EllipticCurve\0", "equals\0", "(Ljava/lang/Object;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hashCode](https://developer.android.com/reference/java/security/spec/EllipticCurve.html#hashCode())
pub fn hashCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/spec/EllipticCurve", java.flags == PUBLIC, .name == "hashCode", .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/spec/EllipticCurve\0", "hashCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}