Package system.security.accesscontrol
Class SemaphoreSecurity
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.accesscontrol.ObjectSecurity
-
- system.security.accesscontrol.CommonObjectSecurity
-
- system.security.accesscontrol.NativeObjectSecurity
-
- system.security.accesscontrol.SemaphoreSecurity
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class SemaphoreSecurity extends NativeObjectSecurity
The base .NET class managing System.Security.AccessControl.SemaphoreSecurity, System.Threading.AccessControl, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.AccessControl.SemaphoreSecurity
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.Threading.AccessControl, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Threading.AccessControlstatic java.lang.StringclassNameQualified class name: System.Security.AccessControl.SemaphoreSecuritystatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SemaphoreSecurity()SemaphoreSecurity(java.lang.Object instance)Internal constructor.SemaphoreSecurity(java.lang.String name, AccessControlSections includeSections)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessRuleAccessRuleFactory(IdentityReference identityReference, int accessMask, boolean isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)voidAddAccessRule(SemaphoreAccessRule rule)voidAddAuditRule(SemaphoreAuditRule rule)AuditRuleAuditRuleFactory(IdentityReference identityReference, int accessMask, boolean isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)static SemaphoreSecuritycast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoSemaphoreSecurity, a cast assert is made to check if types are compatible.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 TypebooleanRemoveAccessRule(SemaphoreAccessRule rule)voidRemoveAccessRuleAll(SemaphoreAccessRule rule)voidRemoveAccessRuleSpecific(SemaphoreAccessRule rule)booleanRemoveAuditRule(SemaphoreAuditRule rule)voidRemoveAuditRuleAll(SemaphoreAuditRule rule)voidRemoveAuditRuleSpecific(SemaphoreAuditRule rule)voidResetAccessRule(SemaphoreAccessRule rule)voidSetAccessRule(SemaphoreAccessRule rule)voidSetAuditRule(SemaphoreAuditRule rule)voidsetJCOInstance(JCObject instance)-
Methods inherited from class system.security.accesscontrol.CommonObjectSecurity
GetAccessRules, GetAuditRules
-
Methods inherited from class system.security.accesscontrol.ObjectSecurity
getAccessRightType, getAccessRuleType, getAreAccessRulesCanonical, getAreAccessRulesProtected, getAreAuditRulesCanonical, getAreAuditRulesProtected, getAuditRuleType, GetGroup, GetOwner, GetSecurityDescriptorBinaryForm, GetSecurityDescriptorSddlForm, IsSddlConversionSupported, ModifyAccessRule, ModifyAuditRule, PurgeAccessRules, PurgeAuditRules, SetAccessRuleProtection, SetAuditRuleProtection, SetGroup, SetOwner, SetSecurityDescriptorBinaryForm, SetSecurityDescriptorBinaryForm, SetSecurityDescriptorBinaryForm, SetSecurityDescriptorBinaryForm, SetSecurityDescriptorSddlForm, SetSecurityDescriptorSddlForm
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Threading.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.Threading.AccessControl- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.AccessControl.SemaphoreSecurity- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SemaphoreSecurity
public SemaphoreSecurity(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
SemaphoreSecurity
public SemaphoreSecurity() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, OverflowException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionOverflowException
-
SemaphoreSecurity
public SemaphoreSecurity(java.lang.String name, AccessControlSections includeSections) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, LockRecursionException, SynchronizationLockException, OutOfMemoryException, UnauthorizedAccessException, KeyNotFoundException, PrivilegeNotHeldException, ArrayTypeMismatchException, IndexOutOfRangeException, OverflowException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionLockRecursionExceptionSynchronizationLockExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionKeyNotFoundExceptionPrivilegeNotHeldExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionOverflowException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNativeObjectSecurity- 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 classNativeObjectSecurity- 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 classNativeObjectSecurity- 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 classNativeObjectSecurity- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNativeObjectSecurity
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNativeObjectSecurity- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static SemaphoreSecurity cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoSemaphoreSecurity, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
SemaphoreSecurityinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
RemoveAccessRule
public boolean RemoveAccessRule(SemaphoreAccessRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
RemoveAuditRule
public boolean RemoveAuditRule(SemaphoreAuditRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
AccessRuleFactory
public AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, boolean isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, FormatException
- Overrides:
AccessRuleFactoryin classObjectSecurity- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionFormatException
-
AuditRuleFactory
public AuditRule AuditRuleFactory(IdentityReference identityReference, int accessMask, boolean isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, FormatException
- Overrides:
AuditRuleFactoryin classObjectSecurity- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionFormatException
-
AddAccessRule
public void AddAccessRule(SemaphoreAccessRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
AddAuditRule
public void AddAuditRule(SemaphoreAuditRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
RemoveAccessRuleAll
public void RemoveAccessRuleAll(SemaphoreAccessRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
RemoveAccessRuleSpecific
public void RemoveAccessRuleSpecific(SemaphoreAccessRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
RemoveAuditRuleAll
public void RemoveAuditRuleAll(SemaphoreAuditRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
RemoveAuditRuleSpecific
public void RemoveAuditRuleSpecific(SemaphoreAuditRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
ResetAccessRule
public void ResetAccessRule(SemaphoreAccessRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
SetAccessRule
public void SetAccessRule(SemaphoreAccessRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
SetAuditRule
public void SetAuditRule(SemaphoreAuditRule rule) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, LockRecursionException, PlatformNotSupportedException, AbandonedMutexException, SynchronizationLockException
-
-