public class DelegationPrivilege extends Object
DelegationPrivilege
class represents an access control
policy on a set of resources in a realm. It consists of a name, a set of
DelegationPermission
, and a set of subjects. The name is the
name of the privilege. The DelegationPermission
defines the
resource to which the delegation privilege applies to. The subject set
defines to whom the delegation privilege applies.Constructor and Description |
---|
DelegationPrivilege(String name,
Set permissions,
Set subjects)
Constructor for
DelegationPrivilege . |
DelegationPrivilege(String name,
Set subjects,
String orgName)
Constructor for
DelegationPrivilege . |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the privilege name in the privilege
|
Set |
getPermissions()
Returns the
DelegationPermission s in the privilege |
Set |
getSubjects()
Returns the subjects in the privilege
|
void |
setName(String name)
Sets the privilege name in the privilege
|
void |
setPermissions(Set permissions)
Sets the
DelegationPermission s in the privilege |
void |
setSubjects(Set names)
Sets the subject names in the privilege
|
String |
toString()
Returns the
String representation of this
object. |
public DelegationPrivilege(String name, Set permissions, Set subjects) throws DelegationException
DelegationPrivilege
. Constructs a
delegation privilege object with a name, a set of
DelegationPermission
, and a set of subjects.name
- The name of the privilegepermissions
- The set of DelegationPermission
that
the privilege contains.subjects
- The set of subjects that the privilege applies toDelegationException
- if any input value is incorrect.public DelegationPrivilege(String name, Set subjects, String orgName) throws DelegationException
DelegationPrivilege
.name
- The name of the privilegesubjects
- The set of subjects the privilege applies toorgName
- The name of the realm where the privilege is definedDelegationException
- if unable to create
DelegationPrivilege
instance.public String getName()
public void setName(String name) throws DelegationException
name
- The privilege name in the delegation privilegeDelegationException
- if name already exists in the realmpublic Set getPermissions()
DelegationPermission
s in the privilegeDelegationPermission
s in the privilegepublic void setPermissions(Set permissions) throws DelegationException
DelegationPermission
s in the privilegepermissions
- The DelegationPermission
s in the
delegation privilegeDelegationException
- if unable to set
DelegationPermission
public Set getSubjects()
public void setSubjects(Set names) throws DelegationException
names
- The subject names in the delegation privilegeDelegationException
- if unable to set subjectsCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.