com.ibm.itim.apps.util

Class ExtensionUtilities

  • java.lang.Object
    • com.ibm.itim.apps.util.ExtensionUtilities


  • public class ExtensionUtilities
    extends java.lang.Object
    Helper class to retrieve Subject, PlatformContext and AuthenticationObject for the authenticated user. Methods of this class can be used to retrieve the information required to make server calls using MO objects. This utility class should be used only within Identity Governance server context.
    • Constructor Detail

      • ExtensionUtilities

        public ExtensionUtilities()
                           throws ApplicationException,
                                  java.io.IOException
        Construct the ExtensionUtilities Object with Subject, AuthenticationObject and PlaformContext objects for the authenticated user.
        Throws:
        java.io.IOException
        ApplicationException
    • Method Detail

      • getSubject

        public javax.security.auth.Subject getSubject()
        Gets Subject for the authenticated user
        Returns:
        Subject
      • getTenantDn

        public DistinguishedName getTenantDn()
        Gets the tenant DN of the authenticated user
        Returns:
        DistinguishedName of tenant of the authenticated user
      • getTenantId

        public java.lang.String getTenantId()
        Gets the tenant id of the authenticated user
        Returns:
        String representation of tenant id of the authenticated user
      • getCurrentPersonDn

        public DistinguishedName getCurrentPersonDn()
        Gets the Person DN of the authenticated user
        Returns:
        the distinguished name of the person
      • getCurrentItimAccountID

        public java.lang.String getCurrentItimAccountID()
        Gets the user ID of the authenticated user
        Returns:
        the user id of the authenticated user
      • getCurrentItimAccountDn

        public DistinguishedName getCurrentItimAccountDn()
        Gets the distinguished name of the authenticated user
        Returns:
        the distinguished name of the authenticated user
      • getAuthenticationObject

        public com.ibm.itim.apps.ejb.home.AuthenticationObject getAuthenticationObject()
        Gets the Authenticated Object that contains details of the authenticated user.
        Returns:
        AuthenticationObject
      • getPlatform

        public PlatformContext getPlatform()
        Gets the Platform Context Object that is used to connect to the server.
        Returns:
        PlatformContext Object