Class Policy
public class Policy : JVMBridgeBase<Policy>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Policy>Policy
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Policy>.IsAssignableFrom(IJavaType)JVMBridgeBase<Policy>.IsAssignableFrom<T>()JVMBridgeBase<Policy>.Execute<T>(params T[])JVMBridgeBase<Policy>.DynBridgeClazzJVMBridgeBase<Policy>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
GetParameters
public Policy.Parameters GetParameters { get; }
Property Value
GetPolicy
public static Policy GetPolicy { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Provider
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/security/Policy.html#getProvider()
public Provider Provider { get; }
Property Value
Type
public String Type { get; }
Property Value
UNSUPPORTED_EMPTY_COLLECTION
public static PermissionCollection UNSUPPORTED_EMPTY_COLLECTION { get; }
Property Value
Methods
GetInstance(String, Parameters)
public static Policy GetInstance(String arg0, Policy.Parameters arg1)
Parameters
arg0
Stringarg1
Policy.Parameters
Returns
Exceptions
GetInstance(String, Parameters, String)
public static Policy GetInstance(String arg0, Policy.Parameters arg1, String arg2)
Parameters
arg0
Stringarg1
Policy.Parametersarg2
String
Returns
Exceptions
GetInstance(String, Parameters, Provider)
public static Policy GetInstance(String arg0, Policy.Parameters arg1, Provider arg2)
Parameters
arg0
Stringarg1
Policy.Parametersarg2
Provider
Returns
Exceptions
GetPermissions(CodeSource)
public PermissionCollection GetPermissions(CodeSource arg0)
Parameters
arg0
CodeSource
Returns
GetPermissions(ProtectionDomain)
public PermissionCollection GetPermissions(ProtectionDomain arg0)
Parameters
Returns
Implies(ProtectionDomain, Permission)
public bool Implies(ProtectionDomain arg0, Permission arg1)
Parameters
arg0
ProtectionDomainarg1
Permission
Returns
Refresh()
public void Refresh()
SetPolicy(Policy)
public static void SetPolicy(Policy arg0)