public interface RBACStructure
extends java.io.Serializable
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 orgName)
Replaces the RBAC organisation name
|
void addAuthorisedAgent(AuthorisedAgent agent)
agent
- the authorised agent to addvoid addPolicy(Policy policy)
policy
- the policy to addvoid addRole(Role role)
role
- the role to addvoid allowInspection(boolean auth)
auth
- true
or false
depending on whether the
Inspector component is allowed to inspect without
authentication or notjava.util.List<AuthorisedAgent> getAuthorisedAgents()
java.lang.String getBasicAgentClass()
java.lang.String getOrgName()
java.util.List<Policy> getPolicies()
java.util.List<Role> getRoles()
boolean isInspectionAllowed()
true
or false
depending on whether the Inspector
component is allowed to inspect without authentication or notboolean isLoginRequired()
true
or false
depending on whether login is
required or notvoid removeAuthorisedAgent(AuthorisedAgent agent)
agent
- the authorised agent to removevoid removePolicy(Policy policy)
policy
- the policy to removevoid removePolicy(java.lang.String policyName)
policyName
- the name of the policy to removevoid removeRole(Role role)
role
- the role to removevoid removeRole(java.lang.String roleName)
roleName
- the name of the role to removevoid requireLogin(boolean loginReq)
loginReq
- true
or false
depending on whether the login
is required or notvoid setBasicAgentClass(java.lang.String agentClass)
agentClass
- the new basic agent classvoid setOrgName(java.lang.String orgName)
orgName
- the new organisation name