public class DelegationUtils extends Object
static
, so can be invoked
directly.Constructor and Description |
---|
DelegationUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copyRealmPrivilegesFromParent(SSOToken token,
OrganizationConfigManager parent,
OrganizationConfigManager child)
Creates default privileges for a newly created realm This method should
be called in realm mode only.
|
static void |
createRealmPrivileges(SSOToken token,
String realmName)
Creates default privileges for a newly created realm This method should
be called in legacy mode only.
|
static void |
deleteRealmPrivileges(SSOToken token,
String realmName)
Deletes all the delegation privileges of a specific realm
|
public static void createRealmPrivileges(SSOToken token, String realmName) throws SSOException, DelegationException
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.SSOException
DelegationException
public static void copyRealmPrivilegesFromParent(SSOToken token, OrganizationConfigManager parent, OrganizationConfigManager child) throws SSOException, DelegationException
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.SSOException
DelegationException
public static void deleteRealmPrivileges(SSOToken token, String realmName) throws SSOException, DelegationException
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.SSOException
DelegationException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.