[]Struct jni_android_sys::javax::net::ssl::HandshakeCompletedEvent

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

public class HandshakeCompletedEvent

Required feature: "javax-net-ssl-HandshakeCompletedEvent"

Methods

impl HandshakeCompletedEvent

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env SSLSocket>>,
    arg1: impl Into<Option<&'env SSLSession>>
) -> Result<Local<'env, HandshakeCompletedEvent>, Local<'env, Throwable>>
[src]

HandshakeCompletedEvent

Required features: "javax-net-ssl-SSLSession", "javax-net-ssl-SSLSocket"

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

getSession

Required features: "javax-net-ssl-SSLSession"

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

getCipherSuite

Required features: "java-lang-String"

pub fn getLocalCertificates<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<Certificate, Throwable>>>, Local<'env, Throwable>>
[src]

getLocalCertificates

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

pub fn getPeerCertificates<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<Certificate, Throwable>>>, Local<'env, Throwable>>
[src]

getPeerCertificates

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

pub fn getPeerCertificateChain<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<X509Certificate, Throwable>>>, Local<'env, Throwable>>
[src]

getPeerCertificateChain

Required features: "javax-security-cert-X509Certificate"

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

getPeerPrincipal

Required features: "java-security-Principal"

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

getLocalPrincipal

Required features: "java-security-Principal"

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

getSocket

Required features: "javax-net-ssl-SSLSocket"

Methods from Deref<Target = EventObject>

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

getSource

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

Trait Implementations

impl AsJValue for HandshakeCompletedEvent

impl AsValidJObjectAndEnv for HandshakeCompletedEvent

impl Deref for HandshakeCompletedEvent

type Target = EventObject

The resulting type after dereferencing.

impl JniType for HandshakeCompletedEvent

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.