public class PermissionSet extends NetObjectEnumerable implements IDeserializationCallback
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.PermissionSet
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Security.PermissionSet
|
static JCType |
classType
The type managed from JCOBridge.
|
Null| Constructor and Description |
|---|
PermissionSet() |
PermissionSet(java.lang.Object instance)
Internal constructor.
|
PermissionSet(PermissionSet permSet) |
PermissionSet(PermissionState state) |
| Modifier and Type | Method and Description |
|---|---|
IPermission |
AddPermission(IPermission perm) |
void |
Assert() |
static PermissionSet |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into PermissionSet, a cast assert is made to check if types are compatible. |
boolean |
ContainsNonCodeAccessPermissions() |
static byte[] |
ConvertPermissionSet(java.lang.String inFormat,
byte[] inData,
java.lang.String outFormat) |
static byte[] |
ConvertPermissionSet(java.lang.String dupParam0,
JCORefOut dupParam1,
java.lang.String dupParam2) |
PermissionSet |
Copy() |
void |
CopyTo(Array array,
int index) |
void |
Demand() |
void |
Deny() |
void |
FromXml(SecurityElement et) |
int |
getCount() |
boolean |
getIsReadOnly() |
boolean |
getIsSynchronized() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
IPermission |
GetPermission(NetType permClass) |
NetObject |
getSyncRoot() |
PermissionSet |
Intersect(PermissionSet other) |
boolean |
IsEmpty() |
boolean |
IsSubsetOf(PermissionSet target) |
boolean |
IsUnrestricted() |
void |
PermitOnly() |
IPermission |
RemovePermission(NetType permClass) |
static void |
RevertAssert() |
void |
setJCOInstance(JCObject instance) |
IPermission |
SetPermission(IPermission perm) |
SecurityElement |
ToXml() |
PermissionSet |
Union(PermissionSet other) |
GetEnumerator, iteratorEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringOnDeserialization, ToIDeserializationCallbackToIEnumerablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public PermissionSet()
throws java.lang.Throwable
java.lang.Throwablepublic PermissionSet(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic PermissionSet(PermissionSet permSet) throws java.lang.Throwable
java.lang.Throwablepublic PermissionSet(PermissionState state) throws java.lang.Throwable
java.lang.Throwablepublic IPermission AddPermission(IPermission perm) throws java.lang.Throwable
java.lang.Throwablepublic void Assert()
throws java.lang.Throwable
java.lang.Throwablepublic static PermissionSet cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into PermissionSet, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedPermissionSet instancejava.lang.Throwable - in case of error during cast operationpublic boolean ContainsNonCodeAccessPermissions()
throws java.lang.Throwable
java.lang.Throwablepublic static byte[] ConvertPermissionSet(java.lang.String inFormat,
byte[] inData,
java.lang.String outFormat)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
public static byte[] ConvertPermissionSet(java.lang.String dupParam0,
JCORefOut dupParam1,
java.lang.String dupParam2)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
public PermissionSet Copy() throws java.lang.Throwable
java.lang.Throwablepublic void CopyTo(Array array, int index) throws java.lang.Throwable
java.lang.Throwablepublic void Demand()
throws java.lang.Throwable
java.lang.Throwablepublic void Deny()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
public void FromXml(SecurityElement et) throws java.lang.Throwable
java.lang.Throwablepublic int getCount()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsReadOnly()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsSynchronized()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IDeserializationCallbackgetJCOAssemblyName in class NetObjectEnumerableString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IDeserializationCallbackgetJCOClassName in class NetObjectEnumerableString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IDeserializationCallbackgetJCOInstance in class NetObjectEnumerableObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IDeserializationCallbackgetJCOObjectName in class NetObjectEnumerableString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IDeserializationCallbackgetJCOType in class NetObjectEnumerableJCType representing the CLR Type of the instantiated Classpublic IPermission GetPermission(NetType permClass) throws java.lang.Throwable
java.lang.Throwablepublic NetObject getSyncRoot() throws java.lang.Throwable
java.lang.Throwablepublic PermissionSet Intersect(PermissionSet other) throws java.lang.Throwable
java.lang.Throwablepublic boolean IsEmpty()
throws java.lang.Throwable
java.lang.Throwablepublic boolean IsSubsetOf(PermissionSet target) throws java.lang.Throwable
java.lang.Throwablepublic boolean IsUnrestricted()
throws java.lang.Throwable
java.lang.Throwablepublic void PermitOnly()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
public IPermission RemovePermission(NetType permClass) throws java.lang.Throwable
java.lang.Throwablepublic static void RevertAssert()
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectEnumerablepublic IPermission SetPermission(IPermission perm) throws java.lang.Throwable
java.lang.Throwablepublic SecurityElement ToXml() throws java.lang.Throwable
java.lang.Throwablepublic PermissionSet Union(PermissionSet other) throws java.lang.Throwable
java.lang.Throwable