Table of Contents

Class Policy

Namespace
Java.Security
Assembly
MASES.JNet.dll
public class Policy : JVMBridgeBase<Policy>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Policy>
Policy
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Policy>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Policy>.IsAssignableFrom<T>()
JVMBridgeBase<Policy>.Execute<T>(params T[])
JVMBridgeBase<Policy>.DynBridgeClazz
JVMBridgeBase<Policy>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Policy()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("Policy class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Policy()

Policy(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("Policy class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Policy(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

GetParameters

public Policy.Parameters GetParameters { get; }

Property Value

Policy.Parameters

GetPolicy

public static Policy GetPolicy { get; }

Property Value

Policy

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Provider

public Provider Provider { get; }

Property Value

Provider

Type

public String Type { get; }

Property Value

String

UNSUPPORTED_EMPTY_COLLECTION

public static PermissionCollection UNSUPPORTED_EMPTY_COLLECTION { get; }

Property Value

PermissionCollection

Methods

GetInstance(String, Parameters)

public static Policy GetInstance(String arg0, Policy.Parameters arg1)

Parameters

arg0 String

String

arg1 Policy.Parameters

Policy.Parameters

Returns

Policy

Policy

Exceptions

NoSuchAlgorithmException

GetInstance(String, Parameters, String)

public static Policy GetInstance(String arg0, Policy.Parameters arg1, String arg2)

Parameters

arg0 String

String

arg1 Policy.Parameters

Policy.Parameters

arg2 String

String

Returns

Policy

Policy

Exceptions

NoSuchProviderException
NoSuchAlgorithmException

GetInstance(String, Parameters, Provider)

public static Policy GetInstance(String arg0, Policy.Parameters arg1, Provider arg2)

Parameters

arg0 String

String

arg1 Policy.Parameters

Policy.Parameters

arg2 Provider

Provider

Returns

Policy

Policy

Exceptions

NoSuchAlgorithmException

GetPermissions(CodeSource)

public PermissionCollection GetPermissions(CodeSource arg0)

Parameters

arg0 CodeSource

CodeSource

Returns

PermissionCollection

PermissionCollection

GetPermissions(ProtectionDomain)

public PermissionCollection GetPermissions(ProtectionDomain arg0)

Parameters

arg0 ProtectionDomain

ProtectionDomain

Returns

PermissionCollection

PermissionCollection

Implies(ProtectionDomain, Permission)

public bool Implies(ProtectionDomain arg0, Permission arg1)

Parameters

arg0 ProtectionDomain

ProtectionDomain

arg1 Permission

Permission

Returns

bool

bool

Refresh()

public void Refresh()

SetPolicy(Policy)

public static void SetPolicy(Policy arg0)

Parameters

arg0 Policy

Policy