public class ACE
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG
Logger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFlag(AceFlag flag)
Adds ACE flag.
|
boolean |
equals(java.lang.Object ace) |
byte[] |
getApplicationData()
Optional application data.
|
java.util.List<AceFlag> |
getFlags()
Gets ACE flags.
|
byte[] |
getInheritedObjectType()
A GUID (16 bytes) that identifies the type of child object that can inherit the ACE.
|
AceObjectFlags |
getObjectFlags()
A 32-bit unsigned integer that specifies a set of bit flags that indicate whether the ObjectType and
InheritedObjectType fields contain valid data.
|
byte[] |
getObjectType()
A GUID (16 bytes) that identifies a property set, property, extended right, or type of child object.
|
AceRights |
getRights()
An ACCESS_MASK that specifies the user rights allowed by this ACE.
|
SID |
getSid()
The SID of a trustee.
|
int |
getSize()
An unsigned 16-bit integer that specifies the size, in bytes, of the ACE.
|
AceType |
getType()
Gets ACE type.
|
int |
hashCode() |
static ACE |
newInstance(AceType type)
Creates a new ACE instance.
|
void |
setApplicationData(byte[] applicationData)
Sets application data.
|
void |
setInheritedObjectType(byte[] inheritedObjectType)
Sets inherited object type, a GUID (16 bytes) that identifies the type of child object that can inherit the ACE.
|
void |
setObjectFlags(AceObjectFlags objectFlags)
Sets object flags.
|
void |
setObjectType(byte[] objectType)
Sets object type, a GUID (16 bytes) that identifies a property set, property, extended right, or type of child
object.
|
void |
setRights(AceRights rights)
Sets ACE rights.
|
void |
setSid(SID sid)
Sets the SID of a trustee.
|
void |
setType(AceType type)
Sets ACE type.
|
byte[] |
toByteArray()
Serializes to byte array.
|
java.lang.String |
toString()
Serializes to string.
|
public static ACE newInstance(AceType type)
type - ACE type.public java.util.List<AceFlag> getFlags()
AceFlagpublic byte[] getApplicationData()
public void setApplicationData(byte[] applicationData)
applicationData - application data.public AceRights getRights()
AceRightspublic AceObjectFlags getObjectFlags()
AceObjectFlagspublic byte[] getObjectType()
public byte[] getInheritedObjectType()
public SID getSid()
SIDpublic int getSize()
public void setType(AceType type)
type - ACE type.AceTypepublic void addFlag(AceFlag flag)
flag - ACE flag.AceFlagpublic void setRights(AceRights rights)
rights - ACE rights.AceRightspublic void setObjectFlags(AceObjectFlags objectFlags)
objectFlags - ACE object flags.AceObjectFlagspublic void setObjectType(byte[] objectType)
objectType - ACE object type.public void setInheritedObjectType(byte[] inheritedObjectType)
inheritedObjectType - Inherited object type.public void setSid(SID sid)
sid - SID of the trustee.SIDpublic byte[] toByteArray()
public boolean equals(java.lang.Object ace)
equals in class java.lang.Objectace - ACE to be compared with.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2015-2018 Tirasa. All Rights Reserved.