[]Struct jni_android_sys::javax::crypto::NullCipher

#[repr(transparent)]
pub struct NullCipher(_);

public class NullCipher

Required feature: "javax-crypto-NullCipher"

Methods

impl NullCipher

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, NullCipher>, Local<'env, Throwable>>
[src]

Methods from Deref<Target = Cipher>

pub fn getProvider<'env>(
    &'env self
) -> Result<Option<Local<'env, Provider>>, Local<'env, Throwable>>
[src]

getProvider

Required features: "java-security-Provider"

pub fn getAlgorithm<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getAlgorithm

Required features: "java-lang-String"

pub fn getBlockSize<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getOutputSize<'env>(
    &'env self,
    arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getIV<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn getParameters<'env>(
    &'env self
) -> Result<Option<Local<'env, AlgorithmParameters>>, Local<'env, Throwable>>
[src]

getParameters

Required features: "java-security-AlgorithmParameters"

pub fn getExemptionMechanism<'env>(
    &'env self
) -> Result<Option<Local<'env, ExemptionMechanism>>, Local<'env, Throwable>>
[src]

getExemptionMechanism

Required features: "javax-crypto-ExemptionMechanism"

pub fn init_int_Key<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Key>>
) -> Result<(), Local<'env, Throwable>>
[src]

init

Required features: "java-security-Key"

pub fn init_int_Key_SecureRandom<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Key>>,
    arg2: impl Into<Option<&'env SecureRandom>>
) -> Result<(), Local<'env, Throwable>>
[src]

init

Required features: "java-security-Key", "java-security-SecureRandom"

pub fn init_int_Key_AlgorithmParameterSpec<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Key>>,
    arg2: impl Into<Option<&'env AlgorithmParameterSpec>>
) -> Result<(), Local<'env, Throwable>>
[src]

init

Required features: "java-security-Key", "java-security-spec-AlgorithmParameterSpec"

pub fn init_int_Key_AlgorithmParameterSpec_SecureRandom<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Key>>,
    arg2: impl Into<Option<&'env AlgorithmParameterSpec>>,
    arg3: impl Into<Option<&'env SecureRandom>>
) -> Result<(), Local<'env, Throwable>>
[src]

init

Required features: "java-security-Key", "java-security-SecureRandom", "java-security-spec-AlgorithmParameterSpec"

pub fn init_int_Key_AlgorithmParameters<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Key>>,
    arg2: impl Into<Option<&'env AlgorithmParameters>>
) -> Result<(), Local<'env, Throwable>>
[src]

init

Required features: "java-security-AlgorithmParameters", "java-security-Key"

pub fn init_int_Key_AlgorithmParameters_SecureRandom<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Key>>,
    arg2: impl Into<Option<&'env AlgorithmParameters>>,
    arg3: impl Into<Option<&'env SecureRandom>>
) -> Result<(), Local<'env, Throwable>>
[src]

init

Required features: "java-security-AlgorithmParameters", "java-security-Key", "java-security-SecureRandom"

pub fn init_int_Certificate<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Certificate>>
) -> Result<(), Local<'env, Throwable>>
[src]

init

Required features: "java-security-cert-Certificate"

pub fn init_int_Certificate_SecureRandom<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Certificate>>,
    arg2: impl Into<Option<&'env SecureRandom>>
) -> Result<(), Local<'env, Throwable>>
[src]

init

Required features: "java-security-SecureRandom", "java-security-cert-Certificate"

pub fn update_byte_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn update_byte_array_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32,
    arg2: i32
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn update_byte_array_int_int_byte_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env ByteArray>>
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn update_byte_array_int_int_byte_array_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env ByteArray>>,
    arg4: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn update_ByteBuffer_ByteBuffer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteBuffer>>,
    arg1: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32, Local<'env, Throwable>>
[src]

update

Required features: "java-nio-ByteBuffer"

pub fn doFinal<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn doFinal_byte_array_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn doFinal_byte_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn doFinal_byte_array_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32,
    arg2: i32
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn doFinal_byte_array_int_int_byte_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env ByteArray>>
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn doFinal_byte_array_int_int_byte_array_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env ByteArray>>,
    arg4: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn doFinal_ByteBuffer_ByteBuffer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteBuffer>>,
    arg1: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32, Local<'env, Throwable>>
[src]

doFinal

Required features: "java-nio-ByteBuffer"

pub fn wrap<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Key>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

wrap

Required features: "java-security-Key"

pub fn unwrap<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: i32
) -> Result<Option<Local<'env, Key>>, Local<'env, Throwable>>
[src]

unwrap

Required features: "java-lang-String", "java-security-Key"

pub fn updateAAD_byte_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn updateAAD_byte_array_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32,
    arg2: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn updateAAD_ByteBuffer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<(), Local<'env, Throwable>>
[src]

updateAAD

Required features: "java-nio-ByteBuffer"

pub const DECRYPT_MODE: i32[src]

pub const ENCRYPT_MODE: i32[src]

pub const PRIVATE_KEY: i32[src]

pub const PUBLIC_KEY: i32[src]

pub const SECRET_KEY: i32[src]

pub const UNWRAP_MODE: i32[src]

pub const WRAP_MODE: i32[src]

Trait Implementations

impl AsJValue for NullCipher

impl AsValidJObjectAndEnv for NullCipher

impl Deref for NullCipher

type Target = Cipher

The resulting type after dereferencing.

impl JniType for NullCipher

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.