// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-security-cert-CertificateRevokedException"))]
__jni_bindgen! {
/// public class [CertificateRevokedException](https://developer.android.com/reference/java/security/cert/CertificateRevokedException.html)
///
/// Required feature: "java-security-cert-CertificateRevokedException"
public class CertificateRevokedException ("java/security/cert/CertificateRevokedException") extends crate::java::security::cert::CertificateException {
/// [CertificateRevokedException](https://developer.android.com/reference/java/security/cert/CertificateRevokedException.html#CertificateRevokedException(java.util.Date,%20java.security.cert.CRLReason,%20javax.security.auth.x500.X500Principal,%20java.util.Map))
///
/// Required features: "java-security-cert-CRLReason", "java-util-Date", "java-util-Map", "javax-security-auth-x500-X500Principal"
#[cfg(any(feature = "all", all(feature = "java-security-cert-CRLReason", feature = "java-util-Date", feature = "java-util-Map", feature = "javax-security-auth-x500-X500Principal")))]
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Date>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::cert::CRLReason>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::javax::security::auth::x500::X500Principal>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Map>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::cert::CertificateRevokedException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertificateRevokedException", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/util/Date;Ljava/security/cert/CRLReason;Ljavax/security/auth/x500/X500Principal;Ljava/util/Map;)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/cert/CertificateRevokedException\0", "<init>\0", "(Ljava/util/Date;Ljava/security/cert/CRLReason;Ljavax/security/auth/x500/X500Principal;Ljava/util/Map;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getRevocationDate](https://developer.android.com/reference/java/security/cert/CertificateRevokedException.html#getRevocationDate())
///
/// Required features: "java-util-Date"
#[cfg(any(feature = "all", all(feature = "java-util-Date")))]
pub fn getRevocationDate<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Date>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertificateRevokedException", java.flags == PUBLIC, .name == "getRevocationDate", .descriptor == "()Ljava/util/Date;"
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/CertificateRevokedException\0", "getRevocationDate\0", "()Ljava/util/Date;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getRevocationReason](https://developer.android.com/reference/java/security/cert/CertificateRevokedException.html#getRevocationReason())
///
/// Required features: "java-security-cert-CRLReason"
#[cfg(any(feature = "all", all(feature = "java-security-cert-CRLReason")))]
pub fn getRevocationReason<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::cert::CRLReason>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertificateRevokedException", java.flags == PUBLIC, .name == "getRevocationReason", .descriptor == "()Ljava/security/cert/CRLReason;"
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/CertificateRevokedException\0", "getRevocationReason\0", "()Ljava/security/cert/CRLReason;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAuthorityName](https://developer.android.com/reference/java/security/cert/CertificateRevokedException.html#getAuthorityName())
///
/// Required features: "javax-security-auth-x500-X500Principal"
#[cfg(any(feature = "all", all(feature = "javax-security-auth-x500-X500Principal")))]
pub fn getAuthorityName<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::javax::security::auth::x500::X500Principal>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertificateRevokedException", java.flags == PUBLIC, .name == "getAuthorityName", .descriptor == "()Ljavax/security/auth/x500/X500Principal;"
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/CertificateRevokedException\0", "getAuthorityName\0", "()Ljavax/security/auth/x500/X500Principal;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getInvalidityDate](https://developer.android.com/reference/java/security/cert/CertificateRevokedException.html#getInvalidityDate())
///
/// Required features: "java-util-Date"
#[cfg(any(feature = "all", all(feature = "java-util-Date")))]
pub fn getInvalidityDate<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Date>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertificateRevokedException", java.flags == PUBLIC, .name == "getInvalidityDate", .descriptor == "()Ljava/util/Date;"
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/CertificateRevokedException\0", "getInvalidityDate\0", "()Ljava/util/Date;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getExtensions](https://developer.android.com/reference/java/security/cert/CertificateRevokedException.html#getExtensions())
///
/// Required features: "java-util-Map"
#[cfg(any(feature = "all", all(feature = "java-util-Map")))]
pub fn getExtensions<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Map>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/cert/CertificateRevokedException", java.flags == PUBLIC, .name == "getExtensions", .descriptor == "()Ljava/util/Map;"
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/CertificateRevokedException\0", "getExtensions\0", "()Ljava/util/Map;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getMessage](https://developer.android.com/reference/java/security/cert/CertificateRevokedException.html#getMessage())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getMessage<'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/CertificateRevokedException", java.flags == PUBLIC, .name == "getMessage", .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/CertificateRevokedException\0", "getMessage\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}