Package system.security.permissions
Class EnvironmentPermission
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.CodeAccessPermission
-
- system.security.permissions.EnvironmentPermission
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class EnvironmentPermission extends CodeAccessPermission
The base .NET class managing System.Security.Permissions.EnvironmentPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.See: https://docs.microsoft.com/en-us/dotnet/api/System.Security.Permissions.EnvironmentPermission
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static String
assemblyShortName
Assembly name: mscorlibstatic String
className
Qualified class name: System.Security.Permissions.EnvironmentPermissionstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description EnvironmentPermission()
EnvironmentPermission(Object instance)
Internal constructor.EnvironmentPermission(EnvironmentPermissionAccess flag, String pathList)
EnvironmentPermission(PermissionState state)
-
Method Summary
-
Methods inherited from class system.security.CodeAccessPermission
Assert, Demand, Deny, PermitOnly, RevertAll, RevertAssert, RevertDeny, RevertPermitOnly
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Security.Permissions.EnvironmentPermission- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EnvironmentPermission
public EnvironmentPermission(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
EnvironmentPermission
public EnvironmentPermission(EnvironmentPermissionAccess flag, String pathList) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, NullReferenceException, NotSupportedException
-
EnvironmentPermission
public EnvironmentPermission(PermissionState state) throws Throwable, ArgumentException
- Throws:
Throwable
ArgumentException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classCodeAccessPermission
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classCodeAccessPermission
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classCodeAccessPermission
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classCodeAccessPermission
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classCodeAccessPermission
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classCodeAccessPermission
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static EnvironmentPermission cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoEnvironmentPermission
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
EnvironmentPermission
instance- Throws:
Throwable
- in case of error during cast operation
-
IsSubsetOf
public boolean IsSubsetOf(IPermission target) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, NullReferenceException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException
-
Copy
public IPermission Copy() throws Throwable, ArgumentException, ArgumentNullException, IndexOutOfRangeException, ArgumentOutOfRangeException, NullReferenceException, InvalidOperationException, NotSupportedException
-
Intersect
public IPermission Intersect(IPermission target) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NullReferenceException, IndexOutOfRangeException
- Overrides:
Intersect
in classCodeAccessPermission
- Throws:
Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
NullReferenceException
IndexOutOfRangeException
-
Union
public IPermission Union(IPermission other) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NullReferenceException
- Overrides:
Union
in classCodeAccessPermission
- Throws:
Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
NullReferenceException
-
ToXml
public SecurityElement ToXml() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NotImplementedException, IndexOutOfRangeException
- Overrides:
ToXml
in classCodeAccessPermission
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
NotImplementedException
IndexOutOfRangeException
-
GetPathList
public String GetPathList(EnvironmentPermissionAccess flag) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
AddPathList
public void AddPathList(EnvironmentPermissionAccess flag, String pathList) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, IndexOutOfRangeException, NullReferenceException, NotSupportedException
-
FromXml
public void FromXml(SecurityElement esd) throws Throwable, ArgumentNullException, NullReferenceException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, CultureNotFoundException, NotSupportedException
-
SetPathList
public void SetPathList(EnvironmentPermissionAccess flag, String pathList) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, IndexOutOfRangeException, NullReferenceException, NotSupportedException
-
-