[]Struct jni_android_sys::java::security::Policy

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

public class Policy

Required feature: "java-security-Policy"

Methods

impl Policy

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

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

getPolicy

Required features: "java-security-Policy"

pub fn setPolicy<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Policy>>
) -> Result<(), Local<'env, Throwable>>
[src]

setPolicy

Required features: "java-security-Policy"

pub fn getInstance_String_Parameters<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env Policy_Parameters>>
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
[src]

getInstance

Required features: "java-lang-String", "java-security-Policy", "java-security-Policy_Parameters"

pub fn getInstance_String_Parameters_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env Policy_Parameters>>,
    arg2: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
[src]

getInstance

Required features: "java-lang-String", "java-security-Policy", "java-security-Policy_Parameters"

pub fn getInstance_String_Parameters_Provider<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env Policy_Parameters>>,
    arg2: impl Into<Option<&'env Provider>>
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
[src]

getInstance

Required features: "java-lang-String", "java-security-Policy", "java-security-Policy_Parameters", "java-security-Provider"

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

getProvider

Required features: "java-security-Provider"

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

getType

Required features: "java-lang-String"

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

getParameters

Required features: "java-security-Policy_Parameters"

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

getPermissions

Required features: "java-security-CodeSource", "java-security-PermissionCollection"

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

getPermissions

Required features: "java-security-PermissionCollection", "java-security-ProtectionDomain"

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

implies

Required features: "java-security-Permission", "java-security-ProtectionDomain"

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

pub fn UNSUPPORTED_EMPTY_COLLECTION<'env>(
    env: &'env Env
) -> Option<Local<'env, PermissionCollection>>
[src]

get public static final UNSUPPORTED_EMPTY_COLLECTION

Required feature: "java-security-PermissionCollection"

Methods from Deref<Target = Object>

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

getClass

Required features: "java-lang-Class"

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

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 toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

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

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

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

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

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

Trait Implementations

impl AsJValue for Policy

impl AsValidJObjectAndEnv for Policy

impl Deref for Policy

type Target = Object

The resulting type after dereferencing.

impl JniType for Policy

Auto Trait Implementations

impl RefUnwindSafe for Policy

impl !Send for Policy

impl !Sync for Policy

impl Unpin for Policy

impl UnwindSafe for Policy

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.