com.sun.identity.idm
Class IdUtils

java.lang.Object
  |
  +--com.sun.identity.idm.IdUtils

public final class IdUtils
extends java.lang.Object

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


Constructor Summary
IdUtils()
           
 
Method Summary
static AMIdentity getIdentity(SSOToken token)
          Returns a handle of the Identity object based on the SSO Token passed in (AMIdentity object of the user who is authenticated).
static AMIdentity getIdentity(SSOToken token, java.lang.String univId)
          Returns an AMIdentity object, if provided with a string identifier for the object.
static java.lang.String getOrganization(SSOToken token, java.lang.String orgIdentifier)
          Returns an organization which maps to the identifier used by application in order to
static java.lang.String getUniversalId(AMIdentity id)
          Returns a string which uniquely represents this identity object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdUtils

public IdUtils()
Method Detail

getIdentity

public static AMIdentity getIdentity(SSOToken token)
                              throws IdRepoException,
                                     SSOException
Returns a handle of the Identity object based on the SSO Token passed in (AMIdentity object of the user who is authenticated).
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 java.lang.String getUniversalId(AMIdentity id)
Returns a string which uniquely represents this identity object.
Parameters:
id - AMIdentity object whose string represenation is needed.
Returns:
universal identifier of id.

getIdentity

public static AMIdentity getIdentity(SSOToken token,
                                     java.lang.String univId)
                              throws IdRepoException
Returns an AMIdentity object, if provided with a string identifier for the object.
Parameters:
token - Single sign on token of the user.
univId - String represenation of the identity.
Returns:
Identity object
Throws:
IdRepoException - if the identifier provided is wrong.

getOrganization

public static java.lang.String getOrganization(SSOToken token,
                                               java.lang.String orgIdentifier)
                                        throws IdRepoException,
                                               SSOException
Returns an organization which maps to the identifier used by application in order to
Parameters:
orgIdentifier - Organization identifier
Returns:
Organization mapping to that identifier.


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.