Package com.sun.identity.delegation
Class DelegationUtils
- java.lang.Object
 - 
- com.sun.identity.delegation.DelegationUtils
 
 
- 
public class DelegationUtils extends Object
A utility class for delegation service providing utility methods. All methods in this class arestatic, so can be invoked directly. 
- 
- 
Constructor Summary
Constructors Constructor Description DelegationUtils() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyRealmPrivilegesFromParent(SSOToken token, OrganizationConfigManager parent, OrganizationConfigManager child)Creates default privileges for a newly created realm This method should be called in realm mode only.static voidcreateRealmPrivileges(SSOToken token, String realmName)Creates default privileges for a newly created realm This method should be called in legacy mode only.static voiddeleteRealmPrivileges(SSOToken token, String realmName)Deletes all the delegation privileges of a specific realm 
 - 
 
- 
- 
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-SSOTokenof 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:
 SSOExceptionDelegationException
 
- 
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-SSOTokenof a privileged user who has permission to create the privileges, mostly the admin token.parent- parent realm'sOrganizationConfigManagerwhere default privileges are picked from.child- realm where default privileges are copied from the parent.- Throws:
 SSOExceptionDelegationException
 
- 
deleteRealmPrivileges
public static void deleteRealmPrivileges(SSOToken token, String realmName) throws SSOException, DelegationException
Deletes all the delegation privileges of a specific realm- Parameters:
 token-SSOTokenof 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:
 SSOExceptionDelegationException
 
 - 
 
 -