public class PermissionSet extends NetObjectEnumerable
.NET documentation at https://learn.microsoft.com/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=9.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)
Initializes a new instance by invoking the .NET constructor.
|
PermissionSet(PermissionState state)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IPermission |
AddPermission(IPermission perm)
Invokes the .NET member AddPermission.
|
void |
Assert()
Invokes the .NET member 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()
Invokes the .NET member ContainsNonCodeAccessPermissions.
|
static byte[] |
ConvertPermissionSet(java.lang.String inFormat,
byte[] inData,
java.lang.String outFormat)
Invokes the .NET member ConvertPermissionSet.
|
static byte[] |
ConvertPermissionSet(java.lang.String dupParam0,
JCORefOut dupParam1,
java.lang.String dupParam2)
Invokes the .NET member ConvertPermissionSet.
|
PermissionSet |
Copy()
Invokes the .NET member Copy.
|
void |
CopyTo(Array array,
int index)
Invokes the .NET member CopyTo.
|
void |
Demand()
Invokes the .NET member Demand.
|
void |
Deny()
Invokes the .NET member Deny.
|
void |
FromXml(SecurityElement et)
Invokes the .NET member FromXml.
|
int |
getCount()
Gets the value of the .NET property Count.
|
boolean |
getIsReadOnly()
Gets the value of the .NET property IsReadOnly.
|
boolean |
getIsSynchronized()
Gets the value of the .NET property IsSynchronized.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
IPermission |
GetPermission(NetType permClass)
Invokes the .NET member GetPermission.
|
NetObject |
getSyncRoot()
Gets the value of the .NET property SyncRoot.
|
PermissionSet |
Intersect(PermissionSet other)
Invokes the .NET member Intersect.
|
boolean |
IsEmpty()
Invokes the .NET member IsEmpty.
|
boolean |
IsSubsetOf(PermissionSet target)
Invokes the .NET member IsSubsetOf.
|
boolean |
IsUnrestricted()
Invokes the .NET member IsUnrestricted.
|
void |
PermitOnly()
Invokes the .NET member PermitOnly.
|
IPermission |
RemovePermission(NetType permClass)
Invokes the .NET member RemovePermission.
|
static void |
RevertAssert()
Invokes the .NET member RevertAssert.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
IPermission |
SetPermission(IPermission perm)
Invokes the .NET member SetPermission.
|
SecurityElement |
ToXml()
Invokes the .NET member ToXml.
|
PermissionSet |
Union(PermissionSet other)
Invokes the .NET member Union.
|
GetEnumerator, iteratorEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringToIEnumerablepublic 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
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic PermissionSet(PermissionSet permSet) throws java.lang.Throwable
permSet - the argument of type PermissionSetjava.lang.Throwable - if the .NET constructor failspublic PermissionSet(PermissionState state) throws java.lang.Throwable
state - the argument of type PermissionStatejava.lang.Throwable - if the .NET constructor failspublic IPermission AddPermission(IPermission perm) throws java.lang.Throwable
perm - the argument of type IPermissionjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Assert()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic 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.Throwable - if the call fails in the bridge or in the CLRpublic 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
inFormat - the argument of type java.lang.StringinData - the argument of type byte[]outFormat - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic 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
dupParam0 - the argument of type java.lang.StringdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic PermissionSet Copy() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void CopyTo(Array array, int index) throws java.lang.Throwable
array - the argument of type Arrayindex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Demand()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Deny()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void FromXml(SecurityElement et) throws java.lang.Throwable
et - the argument of type SecurityElementjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getCount()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsReadOnly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsSynchronized()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectEnumerablepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectEnumerablepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectEnumerablenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectEnumerablepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectEnumerablepublic IPermission GetPermission(NetType permClass) throws java.lang.Throwable
permClass - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject getSyncRoot() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic PermissionSet Intersect(PermissionSet other) throws java.lang.Throwable
other - the argument of type PermissionSetjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean IsEmpty()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean IsSubsetOf(PermissionSet target) throws java.lang.Throwable
target - the argument of type PermissionSetjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean IsUnrestricted()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void PermitOnly()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic IPermission RemovePermission(NetType permClass) throws java.lang.Throwable
permClass - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static void RevertAssert()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectEnumerableinstance - the new underlying objectpublic IPermission SetPermission(IPermission perm) throws java.lang.Throwable
perm - the argument of type IPermissionjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic SecurityElement ToXml() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic PermissionSet Union(PermissionSet other) throws java.lang.Throwable
other - the argument of type PermissionSetjava.lang.Throwable - if the call fails in the bridge or in the CLR