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.String
assemblyFullName
Fully assembly qualified name: System.Security.AccessControl, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Security.AccessControlstatic java.lang.String
className
Qualified class name: System.Security.AccessControl.CommonSecurityDescriptorstatic JCType
classType
The 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 void
AddDiscretionaryAcl(byte revision, int trusted)
void
AddSystemAcl(byte revision, int trusted)
static CommonSecurityDescriptor
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoCommonSecurityDescriptor
, a cast assert is made to check if types are compatible.DiscretionaryAcl
getDiscretionaryAcl()
boolean
getIsContainer()
boolean
getIsDiscretionaryAclCanonical()
boolean
getIsDS()
boolean
getIsSystemAclCanonical()
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 TypeSystemAcl
getSystemAcl()
void
PurgeAccessControl(SecurityIdentifier sid)
void
PurgeAudit(SecurityIdentifier sid)
void
setDiscretionaryAcl(DiscretionaryAcl DiscretionaryAcl)
void
SetDiscretionaryAclProtection(boolean isProtected, boolean preserveInheritance)
void
setJCOInstance(JCObject instance)
void
setSystemAcl(SystemAcl SystemAcl)
void
SetSystemAclProtection(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.Throwable
Internal 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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
OverflowException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
-
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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classGenericSecurityDescriptor
- 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 interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classGenericSecurityDescriptor
- 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 interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classGenericSecurityDescriptor
- 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 interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classGenericSecurityDescriptor
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classGenericSecurityDescriptor
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classGenericSecurityDescriptor
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static CommonSecurityDescriptor cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoCommonSecurityDescriptor
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
CommonSecurityDescriptor
instance- 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.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
PlatformNotSupportedException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
OverflowException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
ArrayTypeMismatchException
OverflowException
IndexOutOfRangeException
RankException
-
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
-
-