Class UsernameExtractor

java.lang.Object
org.forgerock.am.identity.application.UsernameExtractor

@Deprecated public class UsernameExtractor extends Object
Deprecated.
  • Constructor Details

    • UsernameExtractor

      public UsernameExtractor()
      Deprecated.
  • Method Details

    • 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.