Class CommonFiles.WindowsWellKnownIdentities

java.lang.Object
org.terracotta.utilities.test.io.CommonFiles.WindowsWellKnownIdentities
Enclosing class:
CommonFiles

private static final class CommonFiles.WindowsWellKnownIdentities extends Object
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 Details

    • AUTHENTICATED_USERS

      static final 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 String 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 convert
      defaultPrincipalName - the principal name to use if the conversion fails
      Returns:
      the principal name for stringSid if available; defaultPrincipalName otherwise