Class UsernameExtractor

    • Constructor Detail

      • UsernameExtractor

        public UsernameExtractor()
        Deprecated.
    • Method Detail

      • getUsername

        public static String getUsername​(String name)
                                  throws IdRepoException
        Deprecated.
        Returns the username when given a string which may be a username, universal ID, or special user DN. This should be avoided where possible, as it indicates that the calling code is unsure of the format of the data which it holds.
        Parameters:
        name - The name to extract the username from.
        Returns:
        The username extracted from the provided name.
        Throws:
        IdRepoException - if the provided name is an illegal universal id.