Class SecurityIdentifier
java.lang.Object
org.cryptomator.frontend.dokany.internal.structure.filesecurity.SecurityIdentifier
- All Implemented Interfaces:
Byteable
Object-oriented implementation of the SID structure.
See also the microsoft doc.
TODO: implement add() method to add subAuthorities
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityIdentifier(SidIdentifierAuthority sidAuth, List<Integer> subAuthorities) Creates a SecurityIdentifier with the given Authority and Subauthorities. -
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityIdentifierfromString(String stringSid) intbyte[]
-
Constructor Details
-
SecurityIdentifier
Creates a SecurityIdentifier with the given Authority and Subauthorities. The number of Subauthorities is bounded from above by 15 and if the List of subauthorities exceeds this limit only the first 15 will be taken.- Parameters:
sidAuth-subAuthorities-
-
-
Method Details
-
toByteArray
public byte[] toByteArray()- Specified by:
toByteArrayin interfaceByteable
-
sizeOfByteArray
public int sizeOfByteArray()- Specified by:
sizeOfByteArrayin interfaceByteable
-
fromString
- Parameters:
stringSid-- Returns:
-