public class TucsonRBACStructure extends java.lang.Object implements RBACStructure
Constructor and Description |
---|
TucsonRBACStructure(java.lang.String org)
Builds a empty RBAC structure.
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthorisedAgent(AuthorisedAgent agent)
Adds an authorised agent to this RBAC structure
|
void |
addPolicy(Policy policy)
Adds a policy to this RBAC structure
|
void |
addRole(Role role)
Adds a role to this RBAC structure
|
void |
allowInspection(boolean auth)
Sets whether the Inspector component is allowed to inspect without
authentication or not
|
java.util.List<AuthorisedAgent> |
getAuthorisedAgents()
Gets the set of authorised agents
|
java.lang.String |
getBasicAgentClass()
Gets basic agent class configured for this RBAC structure
|
java.lang.String |
getOrgName()
Gets the name of the organisation associated to this RBAC configuration
|
java.util.List<Policy> |
getPolicies()
Gets the set of policies configured for this RBAC structure
|
java.util.List<Role> |
getRoles()
Gets the set of roles configured for this RBAC structure
|
boolean |
isInspectionAllowed()
Checks whether the Inspector component is allowed to inspect without
authentication or not
|
boolean |
isLoginRequired()
Checks whether login is required to unknown agents willing to partecipate
the TuCSoN system.
|
void |
removeAuthorisedAgent(AuthorisedAgent agent)
Removes an authorised agent from this RBAC structure
|
void |
removePolicy(Policy policy)
Removes a policy from this RBAC structure
|
void |
removePolicy(java.lang.String policyName)
Removes a policy from this RBAC structure
|
void |
removeRole(Role role)
Removes a role from this RBAC structure
|
void |
removeRole(java.lang.String roleName)
Removes a role from this RBAC structure
|
void |
requireLogin(boolean loginReq)
Sets whether the login is required or not
|
void |
setBasicAgentClass(java.lang.String agentClass)
Replaces the basic agent class associated to this RBAC structure
|
void |
setOrgName(java.lang.String org)
Replaces the RBAC organisation name
|
public TucsonRBACStructure(java.lang.String org)
org
- the name of the organisation represented by this RBAC
structurepublic void addAuthorisedAgent(AuthorisedAgent agent)
RBACStructure
addAuthorisedAgent
in interface RBACStructure
agent
- the authorised agent to addpublic void addPolicy(Policy policy)
RBACStructure
addPolicy
in interface RBACStructure
policy
- the policy to addpublic void addRole(Role role)
RBACStructure
addRole
in interface RBACStructure
role
- the role to addpublic void allowInspection(boolean auth)
RBACStructure
allowInspection
in interface RBACStructure
auth
- true
or false
depending on whether the
Inspector component is allowed to inspect without
authentication or notpublic java.util.List<AuthorisedAgent> getAuthorisedAgents()
RBACStructure
getAuthorisedAgents
in interface RBACStructure
public java.lang.String getBasicAgentClass()
RBACStructure
getBasicAgentClass
in interface RBACStructure
public java.lang.String getOrgName()
RBACStructure
getOrgName
in interface RBACStructure
public java.util.List<Policy> getPolicies()
RBACStructure
getPolicies
in interface RBACStructure
public java.util.List<Role> getRoles()
RBACStructure
getRoles
in interface RBACStructure
public boolean isInspectionAllowed()
RBACStructure
isInspectionAllowed
in interface RBACStructure
true
or false
depending on whether the Inspector
component is allowed to inspect without authentication or notpublic boolean isLoginRequired()
RBACStructure
isLoginRequired
in interface RBACStructure
true
or false
depending on whether login is
required or notpublic void removeAuthorisedAgent(AuthorisedAgent agent)
RBACStructure
removeAuthorisedAgent
in interface RBACStructure
agent
- the authorised agent to removepublic void removePolicy(Policy policy)
RBACStructure
removePolicy
in interface RBACStructure
policy
- the policy to removepublic void removePolicy(java.lang.String policyName)
RBACStructure
removePolicy
in interface RBACStructure
policyName
- the name of the policy to removepublic void removeRole(Role role)
RBACStructure
removeRole
in interface RBACStructure
role
- the role to removepublic void removeRole(java.lang.String roleName)
RBACStructure
removeRole
in interface RBACStructure
roleName
- the name of the role to removepublic void requireLogin(boolean loginReq)
RBACStructure
requireLogin
in interface RBACStructure
loginReq
- true
or false
depending on whether the login
is required or notpublic void setBasicAgentClass(java.lang.String agentClass)
RBACStructure
setBasicAgentClass
in interface RBACStructure
agentClass
- the new basic agent classpublic void setOrgName(java.lang.String org)
RBACStructure
setOrgName
in interface RBACStructure
org
- the new organisation name