Package org.terracotta.utilities.test.io
Class CommonFiles.WindowsWellKnownIdentities
- java.lang.Object
-
- org.terracotta.utilities.test.io.CommonFiles.WindowsWellKnownIdentities
-
- Enclosing class:
- CommonFiles
private static final class CommonFiles.WindowsWellKnownIdentities extends java.lang.ObjectWindows 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,
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.StringAUTHENTICATED_USERSThe principal name identifying the group corresponding to the Windows Security Identifier (SID)S-1-5-11-- Authenticated Users.(package private) static java.lang.StringCREATOR_OWNERThe principal name identifying the user corresponding to the Windows Security Identifier (SID)S-1-3-0-- Creator Owner.
-
Constructor Summary
Constructors Modifier Constructor Description privateWindowsWellKnownIdentities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.StringconvertStringSidToPrincipalName(java.lang.String stringSid, java.lang.String defaultPrincipalName)Use PowerShell to convert a string SID value to a principal name.
-
-
-
-
Field Detail
-
AUTHENTICATED_USERS
static final java.lang.String AUTHENTICATED_USERS
The principal name identifying the group corresponding to the Windows Security Identifier (SID)S-1-5-11-- Authenticated Users.
-
CREATOR_OWNER
static final java.lang.String CREATOR_OWNER
The principal name identifying the user corresponding to the Windows Security Identifier (SID)S-1-3-0-- Creator Owner.
-
-
Method Detail
-
convertStringSidToPrincipalName
private static java.lang.String convertStringSidToPrincipalName(java.lang.String stringSid, java.lang.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
-
-