public final class DelegationManager extends Object
DelegationManager
class manages delegation privileges for
a specific realm. This class is the starting point for delegation management,
and provides methods to create/remove/get delegation privileges.
It is a final class and hence cannot be further extended.
Modifier and Type | Field and Description |
---|---|
static Debug |
debug |
static String |
DELEGATION_SERVICE |
Constructor and Description |
---|
DelegationManager(SSOToken token,
String orgName)
Constructor of
DelegationManager for the specified realm. |
Modifier and Type | Method and Description |
---|---|
void |
addPrivilege(DelegationPrivilege privilege)
Adds a delegation privilege to a specific realm.
|
Set |
getConfiguredPrivilegeNames()
Returns all the names of the delegation privileges that are configured
with the realm.
|
Set |
getManageableOrganizationNames(Set organizationNames)
Returns a set of realm names, based on the input parameter
organizationNames , in which the "user" has some
delegation permissions. |
Set |
getPrivileges()
Returns all the delegation privileges associated with the realm.
|
Set |
getPrivileges(String universalId)
Returns all the delegation privileges associated with the realm and
applicable to a subject.
|
Set |
getSubjects(String pattern)
Returns a set of selected subjects matching the pattern in the given
realm.
|
void |
removePrivilege(String privilegeName)
Removes a delegation privilege to the realm.
|
public static final String DELEGATION_SERVICE
public static final Debug debug
public DelegationManager(SSOToken token, String orgName) throws SSOException, DelegationException
DelegationManager
for the specified realm.
It requires a SSOToken
which will be used to perform
delegation operations. The user needs to have "delegation" privilege in
the specified realm, or DelegationException
will be
thrown.token
- orgName
- The name of the realm for which the user delegates
privileges.SSOException
- if invalid or expired single-sign-on tokenDelegationException
- for any other abnormal conditionpublic Set getConfiguredPrivilegeNames() throws DelegationException
Set
of DelegationPrivilege
names
configured with the realm.DelegationException
- for any abnormal conditionpublic Set getPrivileges() throws DelegationException
Set
of DelegationPrivilege
objects
associated with the realm.DelegationException
- for any abnormal conditionpublic Set getPrivileges(String universalId) throws DelegationException
universalId
- The universal ID of the subjectSet
of applicable DelegationPrivilege
objects.DelegationException
- for any abnormal conditionpublic void addPrivilege(DelegationPrivilege privilege) throws DelegationException
privilege
- The delegation privilege to be added.DelegationException
- if any abnormal condition occurred.public void removePrivilege(String privilegeName) throws DelegationException
privilegeName
- The name of the DelegationPrivilege
to be removed.DelegationException
- for any abnormal conditionpublic Set getSubjects(String pattern) throws DelegationException
pattern
- a filter used to select the subjects.Set
of subjects associated with the realm.DelegationException
- for any abnormal conditionpublic Set getManageableOrganizationNames(Set organizationNames) throws DelegationException
organizationNames
, in which the "user" has some
delegation permissions.organizationNames
- a Set
of realm names.Set
of realm names in which the user has some
delegation permissions. It is a subset of
organizationNames
DelegationException
- for any abnormal conditionCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.