[]Struct jni_android_sys::java::security::cert::X509Certificate

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

public class X509Certificate

Required feature: "java-security-cert-X509Certificate"

Methods

impl X509Certificate

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

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

checkValidity

Required features: "java-util-Date"

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

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

getSerialNumber

Required features: "java-math-BigInteger"

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

getIssuerDN

Required features: "java-security-Principal"

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

getIssuerX500Principal

Required features: "javax-security-auth-x500-X500Principal"

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

getSubjectDN

Required features: "java-security-Principal"

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

getSubjectX500Principal

Required features: "javax-security-auth-x500-X500Principal"

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

getNotBefore

Required features: "java-util-Date"

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

getNotAfter

Required features: "java-util-Date"

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

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

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

getSigAlgName

Required features: "java-lang-String"

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

getSigAlgOID

Required features: "java-lang-String"

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

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

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

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

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

getExtendedKeyUsage

Required features: "java-util-List"

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

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

getSubjectAlternativeNames

Required features: "java-util-Collection"

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

getIssuerAlternativeNames

Required features: "java-util-Collection"

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

verify

Required features: "java-security-Provider", "java-security-PublicKey"

Methods from Deref<Target = Certificate>

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

getType

Required features: "java-lang-String"

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

equals

Required features: "java-lang-Object"

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

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

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

verify

Required features: "java-security-PublicKey"

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

verify

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

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

verify

Required features: "java-security-Provider", "java-security-PublicKey"

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

toString

Required features: "java-lang-String"

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

getPublicKey

Required features: "java-security-PublicKey"

Trait Implementations

impl AsJValue for X509Certificate

impl AsRef<X509Extension> for X509Certificate

impl AsValidJObjectAndEnv for X509Certificate

impl Deref for X509Certificate

type Target = Certificate

The resulting type after dereferencing.

impl JniType for X509Certificate

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.