Package com.sun.identity.idm
Class IdUtils
java.lang.Object
com.sun.identity.idm.IdUtils
The class defines some static utilities used by other components like policy and auth
-
Method Summary
Modifier and TypeMethodDescriptionstatic AMIdentity
getIdentity
(SSOToken token) static AMIdentity
getIdentity
(SSOToken token, String univId) static AMIdentity
getIdentity
(String uName, String realm) Gets the AMIdentity of a user with username equal to uName that exists in realmstatic AMIdentity
getIdentity
(String uName, String realm, Set<String> userSearchAttributes) Gets the AMIdentity of a user with username equal to uName that exists in realm.static String
-
Method Details
-
getUniversalId
-
getIdentity
@Supported public static AMIdentity getIdentity(SSOToken token, String univId) throws IdRepoException - Throws:
IdRepoException
-
getIdentity
@Supported public static AMIdentity getIdentity(SSOToken token) throws IdRepoException, SSOException - Throws:
IdRepoException
SSOException
-
getIdentity
Gets the AMIdentity of a user with username equal to uName that exists in realm- Parameters:
uName
- username of the user to get.realm
- realm the user belongs to.- Returns:
- The AMIdentity of user with username equal to uName.
-
getIdentity
@Supported public static AMIdentity getIdentity(String uName, String realm, Set<String> userSearchAttributes) Gets the AMIdentity of a user with username equal to uName that exists in realm. If no AMIdentity found using username it will fall back to using userSearchAttributes if supplied.- Parameters:
uName
- username of the user to get.realm
- realm the user belongs to.userSearchAttributes
- Alias Search Attribute Name.- Returns:
- The AMIdentity of user with username equal to uName or null if no user found .
-