Class IdUtils

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

@Supported public final class IdUtils extends Object
The class defines some static utilities used by other components like policy and auth
  • Method Details

    • getUniversalId

      @Supported public static String getUniversalId(AMIdentity id)
    • 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

      @Supported public static AMIdentity getIdentity(String uName, String realm)
      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 .