Class IdentityUtils
- java.lang.Object
-
- org.forgerock.openam.identity.idm.IdentityUtils
-
@Singleton public class IdentityUtils extends Object
Collection of helper functions forAMIdentity.
-
-
Constructor Summary
Constructors Constructor Description IdentityUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetDN(AMIdentity id)Returns the matching DN from the AM SDK for this entry.StringgetIdentityName(String universalId)Determines the name of the identity based on the provided universal ID.StringgetUniversalId(String identityName, IdType idType, String realm)Determines the universal ID of the user based on the provided details.static booleanisCASPAorJASPA(SSOToken ssoToken)
-
-
-
Method Detail
-
getDN
public static String getDN(AMIdentity id)
Returns the matching DN from the AM SDK for this entry. This utility is required by auth.- Parameters:
id-AMIdentityobject.- Returns:
DNof the object, as represented in the datastore.
-
getIdentityName
public String getIdentityName(String universalId)
Determines the name of the identity based on the provided universal ID.- Parameters:
universalId- The universal ID of the identity.- Returns:
- The name of the identity, or null if the name could not be determined.
-
getUniversalId
public String getUniversalId(String identityName, IdType idType, String realm)
Determines the universal ID of the user based on the provided details.- Parameters:
identityName- The name of the identity.idType- The type of the identity.realm- The realm this identity belongs to.- Returns:
- The universal ID based on the provided parameters.
-
isCASPAorJASPA
public static boolean isCASPAorJASPA(SSOToken ssoToken)
- Parameters:
ssoToken- The user's SSO Token- Returns:
- True if the user SSO Token corresponds to CASPA (C Application Server Policy Agent) or JASPA (Java Application Server Policy Agent)
-
-