Class UsernameExtractor

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

@Deprecated(since="8.0.0", forRemoval=true) public class UsernameExtractor extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the username when given a string which may be a username, universal ID, or special user DN.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UsernameExtractor

      public UsernameExtractor()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getUsername

      public static String getUsername(String name) throws IdRepoException
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.