java.lang.Object
org.codelibs.jcifs.smb1.SecurityDescriptor
Represents a Windows security descriptor containing access control information.
This class encodes and decodes security descriptors that define ownership
and access permissions for SMB resources.
-
Field Summary
Fields -
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
-
Field Details
-
type
public int typeThe type flags indicating security descriptor control flags. -
aces
The array of access control entries (ACEs) in this security descriptor.
-
-
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
-
decode
Decodes a security descriptor 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- Returns:
- the number of bytes decoded
- Throws:
IOException- if an I/O error occurs during decoding
-
toString
-