public final class IdUtils extends Object
Modifier and Type | Method and Description |
---|---|
static AMIdentity |
getIdentity(SSOToken token) |
static AMIdentity |
getIdentity(SSOToken token,
String univId) |
static AMIdentity |
getIdentity(String uName,
String realm) |
static AMIdentity |
getIdentity(String uName,
String realm,
Set<String> userSearchAttributes) |
static String |
getUniversalId(AMIdentity id) |
public static AMIdentity getIdentity(SSOToken token) throws IdRepoException, SSOException
token
- Single sign on token of user.IdRepoException
- if there are repository related error conditions.SSOException
- if user's single sign on token is invalid.public static String getUniversalId(AMIdentity id)
id
- AMIdentity
object whose string represenation is
needed.id
.public static AMIdentity getIdentity(SSOToken token, String univId) throws IdRepoException
token
- SSOToken of the administratorunivId
- String represenation of the identity.IdRepoException
- if the identifier provided is wrong.public static AMIdentity getIdentity(String uName, String realm)
uName
- username of the user to get.realm
- realm the user belongs to.public static AMIdentity getIdentity(String uName, String realm, Set<String> userSearchAttributes)
uName
- username of the user to get.realm
- realm the user belongs to.userSearchAttributes
- Alias Search Attribute Name.Copyright © 2010-2018, ForgeRock All Rights Reserved.