java.lang.Object
org.codelibs.jcifs.smb.internal.dtyp.SecurityDescriptor
- All Implemented Interfaces:
Decodable,SecurityInfo
Internal use only
This class is intended for internal use.
-
Field Summary
Fields inherited from interface org.codelibs.jcifs.smb.internal.dtyp.SecurityInfo
ATTRIBUTE_SECURITY_INFO, BACKUP_SECURITY_INFO, DACL_SECURITY_INFO, GROUP_SECURITY_INFO, LABEL_SECURITY_INFO, OWNER_SECURITY_INFO, SACL_SECURITY_INFO, SCOPE_SECURITY_INFO -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty security descriptor.SecurityDescriptor(byte[] buffer, int bufferIndex, int len) Creates a security descriptor by decoding from a byte buffer. -
Method Summary
Modifier and TypeMethodDescriptionintdecode(byte[] buffer, int bufferIndex, int len) Decodes a security descriptor from a byte buffer.final ACE[]getAces()Gets the access control entries (ACEs) from this security descriptor.final SIDGets the owner group SID of this security descriptor.final SIDGets the owner user SID of this security descriptor.final intgetType()Gets the type flags of this security descriptor.toString()
-
Constructor Details
-
SecurityDescriptor
public SecurityDescriptor()Creates an empty security descriptor. -
SecurityDescriptor
Creates a security descriptor by decoding from a byte buffer.- Parameters:
buffer- the byte buffer containing the security descriptor databufferIndex- the starting offset in the bufferlen- the length of data to decode- Throws:
IOException- if an I/O error occurs during decoding
-
-
Method Details
-
getType
public final int getType()Gets the type flags of this security descriptor.- Returns:
- the type flags indicating security descriptor control flags
-
getAces
Gets the access control entries (ACEs) from this security descriptor.- Returns:
- the array of access control entries
-
getOwnerGroupSid
Gets the owner group SID of this security descriptor.- Returns:
- the security identifier of the owner group
-
getOwnerUserSid
Gets the owner user SID of this security descriptor.- Returns:
- the security identifier of the owner user
-
decode
Decodes a security descriptor from a byte buffer.- Specified by:
decodein interfaceDecodable- Parameters:
buffer- the byte buffer containing the security descriptor databufferIndex- the starting offset in the bufferlen- the length of data to decode- Returns:
- the number of bytes decoded
- Throws:
SMBProtocolDecodingException- if the data cannot be properly decoded
-
toString
-