com.sun.identity.idm
Class IdUtils

java.lang.Object
  extended by com.sun.identity.idm.IdUtils

public final class IdUtils
extends Object

The class defines some static utilities used by other components like policy and auth


Method Summary
static AMIdentity getIdentity(SSOToken token)
           
static AMIdentity getIdentity(SSOToken token, String univId)
           
static String getUniversalId(AMIdentity id)
           
 

Method Detail

getIdentity

public static AMIdentity getIdentity(SSOToken token)
                              throws IdRepoException,
                                     SSOException
Parameters:
token - Single sign on token of user.
Returns:
Identity object.
Throws:
IdRepoException - if there are repository related error conditions.
SSOException - if user's single sign on token is invalid.

getUniversalId

public static String getUniversalId(AMIdentity id)
Parameters:
id - AMIdentity object whose string represenation is needed.
Returns:
universal identifier of id.

getIdentity

public static AMIdentity getIdentity(SSOToken token,
                                     String univId)
                              throws IdRepoException
Parameters:
token - SSOToken of the administrator
univId - String represenation of the identity.
Returns:
Identity object
Throws:
IdRepoException - if the identifier provided is wrong.