Package system.security
Class PermissionSet
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- org.mases.jcobridge.netreflection.NetObjectEnumerable
-
- system.security.PermissionSet
-
- All Implemented Interfaces:
java.lang.Iterable<NetObject>
,IEnumerable
,IJCOBridgeReflected
,IDeserializationCallback
- Direct Known Subclasses:
NamedPermissionSet
public class PermissionSet extends NetObjectEnumerable implements IDeserializationCallback
The base .NET class managing System.Security.PermissionSet, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.PermissionSet
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Security.PermissionSetstatic JCType
classType
The type managed from JCOBridge.-
Fields inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
Null
-
-
Constructor Summary
Constructors Constructor Description PermissionSet()
PermissionSet(java.lang.Object instance)
Internal constructor.PermissionSet(PermissionState state)
PermissionSet(PermissionSet permSet)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IPermission
AddPermission(IPermission perm)
void
Assert()
static PermissionSet
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoPermissionSet
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeIPermission
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)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
GetEnumerator, iterator
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.IDeserializationCallback
OnDeserialization
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.PermissionSet- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PermissionSet
public PermissionSet(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
PermissionSet
public PermissionSet() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PermissionSet
public PermissionSet(PermissionState state) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PermissionSet
public PermissionSet(PermissionSet permSet) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDeserializationCallback
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObjectEnumerable
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIDeserializationCallback
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObjectEnumerable
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIDeserializationCallback
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObjectEnumerable
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIDeserializationCallback
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObjectEnumerable
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObjectEnumerable
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDeserializationCallback
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObjectEnumerable
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static PermissionSet cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoPermissionSet
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
PermissionSet
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
ContainsNonCodeAccessPermissions
public boolean ContainsNonCodeAccessPermissions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsEmpty
public boolean IsEmpty() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsSubsetOf
public boolean IsSubsetOf(PermissionSet target) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsUnrestricted
public boolean IsUnrestricted() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ConvertPermissionSet
public 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
-
ConvertPermissionSet
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
-
AddPermission
public IPermission AddPermission(IPermission perm) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetPermission
public IPermission GetPermission(NetType permClass) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
RemovePermission
public IPermission RemovePermission(NetType permClass) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetPermission
public IPermission SetPermission(IPermission perm) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Copy
public PermissionSet Copy() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Intersect
public PermissionSet Intersect(PermissionSet other) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Union
public PermissionSet Union(PermissionSet other) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToXml
public SecurityElement ToXml() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Assert
public void Assert() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CopyTo
public void CopyTo(Array array, int index) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Demand
public void Demand() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Deny
public void Deny() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
FromXml
public void FromXml(SecurityElement et) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PermitOnly
public void PermitOnly() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
RevertAssert
public static void RevertAssert() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsReadOnly
public boolean getIsReadOnly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsSynchronized
public boolean getIsSynchronized() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCount
public int getCount() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSyncRoot
public NetObject getSyncRoot() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-