Package system.security.accesscontrol
Class CommonSecurityDescriptor
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.accesscontrol.GenericSecurityDescriptor
-
- system.security.accesscontrol.CommonSecurityDescriptor
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class CommonSecurityDescriptor extends GenericSecurityDescriptor
The base .NET class managing System.Security.AccessControl.CommonSecurityDescriptor, System.Security.AccessControl, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.AccessControl.CommonSecurityDescriptor
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.Security.AccessControl, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Security.AccessControlstatic java.lang.StringclassNameQualified class name: System.Security.AccessControl.CommonSecurityDescriptorstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description CommonSecurityDescriptor()CommonSecurityDescriptor(boolean isContainer, boolean isDS, byte[] binaryForm, int offset)CommonSecurityDescriptor(boolean isContainer, boolean isDS, java.lang.String sddlForm)CommonSecurityDescriptor(boolean isContainer, boolean isDS, ControlFlags flags, SecurityIdentifier owner, SecurityIdentifier group, SystemAcl systemAcl, DiscretionaryAcl discretionaryAcl)CommonSecurityDescriptor(boolean isContainer, boolean isDS, RawSecurityDescriptor rawSecurityDescriptor)CommonSecurityDescriptor(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAddDiscretionaryAcl(byte revision, int trusted)voidAddSystemAcl(byte revision, int trusted)static CommonSecurityDescriptorcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoCommonSecurityDescriptor, a cast assert is made to check if types are compatible.DiscretionaryAclgetDiscretionaryAcl()booleangetIsContainer()booleangetIsDiscretionaryAclCanonical()booleangetIsDS()booleangetIsSystemAclCanonical()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 TypeSystemAclgetSystemAcl()voidPurgeAccessControl(SecurityIdentifier sid)voidPurgeAudit(SecurityIdentifier sid)voidsetDiscretionaryAcl(DiscretionaryAcl DiscretionaryAcl)voidSetDiscretionaryAclProtection(boolean isProtected, boolean preserveInheritance)voidsetJCOInstance(JCObject instance)voidsetSystemAcl(SystemAcl SystemAcl)voidSetSystemAclProtection(boolean isProtected, boolean preserveInheritance)-
Methods inherited from class system.security.accesscontrol.GenericSecurityDescriptor
GetBinaryForm, GetBinaryForm, getBinaryLength, getControlFlags, getGroup, getOwner, getRevision, GetSddlForm, IsSddlConversionSupported, setGroup, setOwner
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.AccessControl, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Security.AccessControl- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.AccessControl.CommonSecurityDescriptor- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommonSecurityDescriptor
public CommonSecurityDescriptor(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
CommonSecurityDescriptor
public CommonSecurityDescriptor() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
CommonSecurityDescriptor
public CommonSecurityDescriptor(boolean isContainer, boolean isDS, byte[] binaryForm, int offset) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OverflowException
-
CommonSecurityDescriptor
public CommonSecurityDescriptor(boolean isContainer, boolean isDS, ControlFlags flags, SecurityIdentifier owner, SecurityIdentifier group, SystemAcl systemAcl, DiscretionaryAcl discretionaryAcl) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, OverflowException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOverflowExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchException
-
CommonSecurityDescriptor
public CommonSecurityDescriptor(boolean isContainer, boolean isDS, RawSecurityDescriptor rawSecurityDescriptor) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OverflowException, IndexOutOfRangeException, PlatformNotSupportedException
-
CommonSecurityDescriptor
public CommonSecurityDescriptor(boolean isContainer, boolean isDS, java.lang.String sddlForm) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, IndexOutOfRangeException, ArgumentOutOfRangeException, Win32Exception, ArrayTypeMismatchException, InvalidOperationException, OverflowException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classGenericSecurityDescriptor- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classGenericSecurityDescriptor- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classGenericSecurityDescriptor- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classGenericSecurityDescriptor- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classGenericSecurityDescriptor
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classGenericSecurityDescriptor- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static CommonSecurityDescriptor cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoCommonSecurityDescriptor, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
CommonSecurityDescriptorinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
AddDiscretionaryAcl
public void AddDiscretionaryAcl(byte revision, int trusted) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, OverflowException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOverflowExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchException
-
AddSystemAcl
public void AddSystemAcl(byte revision, int trusted) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
PurgeAccessControl
public void PurgeAccessControl(SecurityIdentifier sid) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
PurgeAudit
public void PurgeAudit(SecurityIdentifier sid) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
SetDiscretionaryAclProtection
public void SetDiscretionaryAclProtection(boolean isProtected, boolean preserveInheritance) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException
-
SetSystemAclProtection
public void SetSystemAclProtection(boolean isProtected, boolean preserveInheritance) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException
-
getIsContainer
public boolean getIsContainer() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsDiscretionaryAclCanonical
public boolean getIsDiscretionaryAclCanonical() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsDS
public boolean getIsDS() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsSystemAclCanonical
public boolean getIsSystemAclCanonical() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getDiscretionaryAcl
public DiscretionaryAcl getDiscretionaryAcl() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDiscretionaryAcl
public void setDiscretionaryAcl(DiscretionaryAcl DiscretionaryAcl) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, RankException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionArrayTypeMismatchExceptionOverflowExceptionIndexOutOfRangeExceptionRankException
-
getSystemAcl
public SystemAcl getSystemAcl() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSystemAcl
public void setSystemAcl(SystemAcl SystemAcl) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
-