1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "javax-crypto-EncryptedPrivateKeyInfo"))]
__jni_bindgen! {
    /// public class [EncryptedPrivateKeyInfo](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html)
    ///
    /// Required feature: "javax-crypto-EncryptedPrivateKeyInfo"
    public class EncryptedPrivateKeyInfo ("javax/crypto/EncryptedPrivateKeyInfo") extends crate::java::lang::Object {

        /// [EncryptedPrivateKeyInfo](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#EncryptedPrivateKeyInfo(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::javax::crypto::EncryptedPrivateKeyInfo>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "javax/crypto/EncryptedPrivateKeyInfo", 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("javax/crypto/EncryptedPrivateKeyInfo\0", "<init>\0", "([B)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [EncryptedPrivateKeyInfo](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#EncryptedPrivateKeyInfo(java.lang.String,%20byte%5B%5D))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn new_String_byte_array<'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 __jni_bindgen::ByteArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::javax::crypto::EncryptedPrivateKeyInfo>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "javax/crypto/EncryptedPrivateKeyInfo", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;[B)V"
            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_method("javax/crypto/EncryptedPrivateKeyInfo\0", "<init>\0", "(Ljava/lang/String;[B)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [EncryptedPrivateKeyInfo](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#EncryptedPrivateKeyInfo(java.security.AlgorithmParameters,%20byte%5B%5D))
        ///
        /// Required features: "java-security-AlgorithmParameters"
        #[cfg(any(feature = "all", all(feature = "java-security-AlgorithmParameters")))]
        pub fn new_AlgorithmParameters_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::AlgorithmParameters>>, arg1: 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::javax::crypto::EncryptedPrivateKeyInfo>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "javax/crypto/EncryptedPrivateKeyInfo", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/security/AlgorithmParameters;[B)V"
            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_method("javax/crypto/EncryptedPrivateKeyInfo\0", "<init>\0", "(Ljava/security/AlgorithmParameters;[B)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getAlgName](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#getAlgName())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getAlgName<'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 == "javax/crypto/EncryptedPrivateKeyInfo", java.flags == PUBLIC, .name == "getAlgName", .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("javax/crypto/EncryptedPrivateKeyInfo\0", "getAlgName\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getAlgParameters](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#getAlgParameters())
        ///
        /// Required features: "java-security-AlgorithmParameters"
        #[cfg(any(feature = "all", all(feature = "java-security-AlgorithmParameters")))]
        pub fn getAlgParameters<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::AlgorithmParameters>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "javax/crypto/EncryptedPrivateKeyInfo", java.flags == PUBLIC, .name == "getAlgParameters", .descriptor == "()Ljava/security/AlgorithmParameters;"
            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("javax/crypto/EncryptedPrivateKeyInfo\0", "getAlgParameters\0", "()Ljava/security/AlgorithmParameters;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getEncryptedData](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#getEncryptedData())
        pub fn getEncryptedData<'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 == "javax/crypto/EncryptedPrivateKeyInfo", java.flags == PUBLIC, .name == "getEncryptedData", .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("javax/crypto/EncryptedPrivateKeyInfo\0", "getEncryptedData\0", "()[B\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getKeySpec](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#getKeySpec(javax.crypto.Cipher))
        ///
        /// Required features: "java-security-spec-PKCS8EncodedKeySpec", "javax-crypto-Cipher"
        #[cfg(any(feature = "all", all(feature = "java-security-spec-PKCS8EncodedKeySpec", feature = "javax-crypto-Cipher")))]
        pub fn getKeySpec_Cipher<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::javax::crypto::Cipher>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::spec::PKCS8EncodedKeySpec>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "javax/crypto/EncryptedPrivateKeyInfo", java.flags == PUBLIC, .name == "getKeySpec", .descriptor == "(Ljavax/crypto/Cipher;)Ljava/security/spec/PKCS8EncodedKeySpec;"
            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("javax/crypto/EncryptedPrivateKeyInfo\0", "getKeySpec\0", "(Ljavax/crypto/Cipher;)Ljava/security/spec/PKCS8EncodedKeySpec;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getKeySpec](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#getKeySpec(java.security.Key))
        ///
        /// Required features: "java-security-Key", "java-security-spec-PKCS8EncodedKeySpec"
        #[cfg(any(feature = "all", all(feature = "java-security-Key", feature = "java-security-spec-PKCS8EncodedKeySpec")))]
        pub fn getKeySpec_Key<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Key>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::spec::PKCS8EncodedKeySpec>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "javax/crypto/EncryptedPrivateKeyInfo", java.flags == PUBLIC, .name == "getKeySpec", .descriptor == "(Ljava/security/Key;)Ljava/security/spec/PKCS8EncodedKeySpec;"
            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("javax/crypto/EncryptedPrivateKeyInfo\0", "getKeySpec\0", "(Ljava/security/Key;)Ljava/security/spec/PKCS8EncodedKeySpec;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getKeySpec](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#getKeySpec(java.security.Key,%20java.lang.String))
        ///
        /// Required features: "java-lang-String", "java-security-Key", "java-security-spec-PKCS8EncodedKeySpec"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-Key", feature = "java-security-spec-PKCS8EncodedKeySpec")))]
        pub fn getKeySpec_Key_String<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Key>>, 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::spec::PKCS8EncodedKeySpec>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "javax/crypto/EncryptedPrivateKeyInfo", java.flags == PUBLIC, .name == "getKeySpec", .descriptor == "(Ljava/security/Key;Ljava/lang/String;)Ljava/security/spec/PKCS8EncodedKeySpec;"
            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("javax/crypto/EncryptedPrivateKeyInfo\0", "getKeySpec\0", "(Ljava/security/Key;Ljava/lang/String;)Ljava/security/spec/PKCS8EncodedKeySpec;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getKeySpec](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#getKeySpec(java.security.Key,%20java.security.Provider))
        ///
        /// Required features: "java-security-Key", "java-security-Provider", "java-security-spec-PKCS8EncodedKeySpec"
        #[cfg(any(feature = "all", all(feature = "java-security-Key", feature = "java-security-Provider", feature = "java-security-spec-PKCS8EncodedKeySpec")))]
        pub fn getKeySpec_Key_Provider<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Key>>, 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::spec::PKCS8EncodedKeySpec>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "javax/crypto/EncryptedPrivateKeyInfo", java.flags == PUBLIC, .name == "getKeySpec", .descriptor == "(Ljava/security/Key;Ljava/security/Provider;)Ljava/security/spec/PKCS8EncodedKeySpec;"
            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("javax/crypto/EncryptedPrivateKeyInfo\0", "getKeySpec\0", "(Ljava/security/Key;Ljava/security/Provider;)Ljava/security/spec/PKCS8EncodedKeySpec;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getEncoded](https://developer.android.com/reference/javax/crypto/EncryptedPrivateKeyInfo.html#getEncoded())
        pub fn getEncoded<'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 == "javax/crypto/EncryptedPrivateKeyInfo", java.flags == PUBLIC, .name == "getEncoded", .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("javax/crypto/EncryptedPrivateKeyInfo\0", "getEncoded\0", "()[B\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}