Package org.terracotta.utilities.test.io
Class CommonFiles.WindowsWellKnownIdentities
java.lang.Object
org.terracotta.utilities.test.io.CommonFiles.WindowsWellKnownIdentities
- Enclosing class:
- CommonFiles
Windows Well-Known Security Identifiers (SIDs) for use with ACL operations.
In early days of Windows NT-based systems, there existed a collection of user and group
named pre-defined in the system. But the names like "Authenticated Users", "Everyone", and
"CREATOR OWNER" aren't the canonical names for the concepts and have changed over time.
The names used in the current OS version must be looked up using the SID assigned to the
security principal.
- See Also:
-
- Well-known SIDs
- invalid input: '<a href="https://support.microsoft.com/en-us/help/243330/well-known-security-identifiers-in-windows-operating-systems> Well-known security identifiers in Windows operating systems</a>'
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringThe principal name identifying the group corresponding to the Windows Security Identifier (SID)S-1-5-11-- Authenticated Users.(package private) static final StringThe principal name identifying the user corresponding to the Windows Security Identifier (SID)S-1-3-0-- Creator Owner. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringconvertStringSidToPrincipalName(String stringSid, String defaultPrincipalName) Use PowerShell to convert a string SID value to a principal name.
-
Field Details
-
AUTHENTICATED_USERS
The principal name identifying the group corresponding to the Windows Security Identifier (SID)S-1-5-11-- Authenticated Users. -
CREATOR_OWNER
The principal name identifying the user corresponding to the Windows Security Identifier (SID)S-1-3-0-- Creator Owner.
-
-
Constructor Details
-
WindowsWellKnownIdentities
private WindowsWellKnownIdentities()
-
-
Method Details
-
convertStringSidToPrincipalName
private static String convertStringSidToPrincipalName(String stringSid, String defaultPrincipalName) Use PowerShell to convert a string SID value to a principal name.- Parameters:
stringSid- the string SID to convertdefaultPrincipalName- the principal name to use if the conversion fails- Returns:
- the principal name for
stringSidif available;defaultPrincipalNameotherwise
-