Class CommonFiles.WindowsWellKnownIdentities

  • Enclosing class:
    CommonFiles

    private static final class CommonFiles.WindowsWellKnownIdentities
    extends java.lang.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,
      • Field Summary

        Fields 
        Modifier and Type Field Description
        (package private) static java.lang.String AUTHENTICATED_USERS
        The principal name identifying the group corresponding to the Windows Security Identifier (SID) S-1-5-11 -- Authenticated Users.
        (package private) static 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 Summary

        All Methods Static Methods Concrete Methods 
        Modifier and Type Method Description
        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.
        • Methods inherited from class java.lang.Object

          clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Constructor Detail

      • WindowsWellKnownIdentities

        private WindowsWellKnownIdentities()
    • 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 convert
        defaultPrincipalName - the principal name to use if the conversion fails
        Returns:
        the principal name for stringSid if available; defaultPrincipalName otherwise