public class TucsonRole extends java.lang.Object implements Role
Constructor and Description |
---|
TucsonRole(java.lang.String rn)
Builds a RBAC role given its name
|
TucsonRole(java.lang.String rn,
java.lang.String ac)
Builds a RBAC role given its name and associated agent class
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgentClass()
Gets the agent class this role is associated to
|
java.lang.String |
getDescription()
Gets the description of this role
|
Policy |
getPolicy()
Gets the policy associated to this role
|
java.lang.String |
getRoleName()
Gets the name of this role
|
void |
setAgentClass(java.lang.String ac)
Replaces the agent class associated to this role
|
void |
setDescription(java.lang.String rd)
Replaces the description of this role
|
void |
setPolicy(Policy p)
Replaces the policy associated to this role
|
void |
setRoleName(java.lang.String rn)
Replaces the name of this role
|
public TucsonRole(java.lang.String rn)
rn
- the name of this rolepublic TucsonRole(java.lang.String rn, java.lang.String ac)
rn
- the name of this roleac
- the agent classpublic java.lang.String getAgentClass()
Role
getAgentClass
in interface Role
public java.lang.String getDescription()
Role
getDescription
in interface Role
public Policy getPolicy()
Role
public java.lang.String getRoleName()
Role
getRoleName
in interface Role
public void setAgentClass(java.lang.String ac)
Role
setAgentClass
in interface Role
ac
- the new agent class to associate to this rolepublic void setDescription(java.lang.String rd)
Role
setDescription
in interface Role
rd
- the new description of this rolepublic void setPolicy(Policy p)
Role
public void setRoleName(java.lang.String rn)
Role
setRoleName
in interface Role
rn
- the new name of this role