Class IdentityUtils


  • @Singleton
    public class IdentityUtils
    extends Object
    Collection of helper functions for AMIdentity.
    • Constructor Detail

      • IdentityUtils

        public IdentityUtils()
    • 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 - AMIdentity object.
        Returns:
        DN of 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)