Class DelegationUtils


  • public class DelegationUtils
    extends Object
    A utility class for delegation service providing utility methods. All methods in this class are static, so can be invoked directly.
    • Constructor Detail

      • DelegationUtils

        public DelegationUtils()
    • Method Detail

      • createRealmPrivileges

        public static void createRealmPrivileges​(SSOToken token,
                                                 String realmName)
                                          throws SSOException,
                                                 DelegationException
        Creates default privileges for a newly created realm This method should be called in legacy mode only.
        Parameters:
        token - SSOToken of a privileged user who has permission to create the privileges, mostly the admin token.
        realmName - name of the realm under which privileges need to be created.
        Throws:
        SSOException
        DelegationException
      • copyRealmPrivilegesFromParent

        public static void copyRealmPrivilegesFromParent​(SSOToken token,
                                                         OrganizationConfigManager parent,
                                                         OrganizationConfigManager child)
                                                  throws SSOException,
                                                         DelegationException
        Creates default privileges for a newly created realm This method should be called in realm mode only.
        Parameters:
        token - SSOToken of a privileged user who has permission to create the privileges, mostly the admin token.
        parent - parent realm's OrganizationConfigManager where default privileges are picked from.
        child - realm where default privileges are copied from the parent.
        Throws:
        SSOException
        DelegationException
      • deleteRealmPrivileges

        public static void deleteRealmPrivileges​(SSOToken token,
                                                 String realmName)
                                          throws SSOException,
                                                 DelegationException
        Deletes all the delegation privileges of a specific realm
        Parameters:
        token - SSOToken of a privileged user who has permission to delete the privileges, mostly the admin token.
        realmName - name of the realm from where the delegation privileges need to be removed.
        Throws:
        SSOException
        DelegationException