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.StringassemblyFullNameFully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.Security.PermissionSetstatic JCTypeclassTypeThe 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 IPermissionAddPermission(IPermission perm)voidAssert()static PermissionSetcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoPermissionSet, a cast assert is made to check if types are compatible.booleanContainsNonCodeAccessPermissions()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)PermissionSetCopy()voidCopyTo(Array array, int index)voidDemand()voidDeny()voidFromXml(SecurityElement et)intgetCount()booleangetIsReadOnly()booleangetIsSynchronized()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeIPermissionGetPermission(NetType permClass)NetObjectgetSyncRoot()PermissionSetIntersect(PermissionSet other)booleanIsEmpty()booleanIsSubsetOf(PermissionSet target)booleanIsUnrestricted()voidPermitOnly()IPermissionRemovePermission(NetType permClass)static voidRevertAssert()voidsetJCOInstance(JCObject instance)IPermissionSetPermission(IPermission perm)SecurityElementToXml()PermissionSetUnion(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.ThrowableInternal 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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIDeserializationCallback- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObjectEnumerable- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIDeserializationCallback- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObjectEnumerable- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIDeserializationCallback- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObjectEnumerable- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIDeserializationCallback- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObjectEnumerable- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObjectEnumerable
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIDeserializationCallback- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObjectEnumerable- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static PermissionSet cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoPermissionSet, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
PermissionSetinstance- 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
-
-