Class UsernameExtractor
- java.lang.Object
-
- org.forgerock.am.identity.application.UsernameExtractor
-
@Deprecated public class UsernameExtractor extends Object
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description UsernameExtractor()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getUsername(String name)
Deprecated.Returns the username when given a string which may be a username, universal ID, or special user DN.
-
-
-
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.
-
-