public class AdminACCProxyAgentSide extends ACCProxyAgentSide implements AdminACC
Constructor and Description |
---|
AdminACCProxyAgentSide(java.lang.Object aid)
Builds an Administrator ACC given the associated agent ID or name
|
AdminACCProxyAgentSide(java.lang.Object aid,
java.lang.String node,
int port)
Builds an Administrator ACC given the associated agent ID or name, the IP
address of the TuCSoN node the agent is willing to interact with, and the
TCP port also.
|
AdminACCProxyAgentSide(java.lang.Object aid,
java.lang.String node,
int port,
java.lang.String uname,
java.lang.String psw)
Builds an Administrator ACC given the associated agent ID or name, the IP
address of the TuCSoN node the agent is willing to interact with, the TCP
port also, as well as the agent username and (encrypted) password.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AuthorisedAgent agent)
Adds an agent to the set of authorised agents, that is, those already
recognised by TuCSoN according to RBAC, in the default TuCSoN node
(installed on
localhost:20504 ). |
void |
add(Permission permission,
java.lang.String policyName)
Adds a permission, that is, a grant stating what is allowed to do in the
organisation, to the given RBAC policy already installed in default
TuCSoN node (installed on
localhost:20504 ). |
void |
add(Policy policy)
Adds a policy, that is, a set of permissions, to the RBAC structure
installed in the default TuCSoN node.
|
void |
add(Role role)
Adds a role, that is, a position in the organisation associated to an
RBAC policy, to the RBAC structure installed in default TuCSoN node
(installed on
localhost:20504 ). |
void |
install(RBACStructure rbac)
Adds an RBAC structure, that is, the set of roles, policies, permissions,
and their relationships, to the default TuCSoN node (installed on
localhost:20504 ). |
void |
install(RBACStructure rbac,
java.lang.Long timeout,
java.lang.String n,
int p)
Adds an RBAC structure, that is, the set of roles, policies, permissions,
and their relationships, to the given TuCSoN node (only local nodes are
supported atm, that is, this installed on
localhost ). |
protected void |
log(java.lang.String msg)
Method internally used to log proxy activity (could be used for debug)
|
void |
remove(java.lang.String agentName)
Removes an agent from the list of authorised agents installed in default
TuCSoN node (installed on
localhost:20504 ). |
void |
removePolicy(java.lang.String policyName)
Removes a policy from the RBAC structure installed in default TuCSoN node
(installed on
localhost:20504 ). |
void |
removeRBAC()
Removes the RBAC structure installed in default TuCSoN node (installed on
localhost:20504 ). |
void |
removeRBAC(java.lang.Long l,
java.lang.String n,
int p)
Removes the RBAC structure installed in the given TuCSoN node (only local
nodes are supported atm, that is, this installed on
localhost ). |
void |
removeRole(java.lang.String roleName)
Removes a role from the RBAC structure installed in default TuCSoN node
(installed on
localhost:20504 ). |
void |
setBasicAgentClass(java.lang.String newBasicAgentClass)
Sets the basic agent class, that is, the cohort of agents representing
un-authenticated agents (if allowed by the RBAC structure currently
installed) from the RBAC structure installed in default TuCSoN node
(installed on
localhost:20504 ). |
void |
setRoleAgentClass(java.lang.String roleName,
java.lang.String agentClass)
Sets the agent class associated to a role in the RBAC structure installed
in default TuCSoN node (installed on
localhost:20504 ). |
void |
setRolePolicy(java.lang.String roleName,
java.lang.String policyName)
Sets the association between a role and a policy in the RBAC structure
installed in default TuCSoN node (installed on
localhost:20504 ). |
enterACC, exit, get, get, getCompletionEventsList, getPassword, getPendingOperationsMap, getS, getS, getUsername, getUUID, in, in, inAll, inAll, inp, inp, inpS, inpS, inS, inS, isACCEntered, no, no, noAll, noAll, nop, nop, nopS, nopS, noS, noS, out, out, outAll, outAll, outS, outS, rd, rd, rdAll, rdAll, rdp, rdp, rdpS, rdpS, rdS, rdS, set, set, setS, setS, setS, setS, spawn, spawn, uin, uin, uinp, uinp, uno, uno, unop, unop, urd, urd, urdp, urdp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, in, inp, no, nop, out, rd, rdp, set, spawn
getS, inpS, inS, nopS, noS, outS, rdpS, rdS, setS, setS
inAll, noAll, outAll, rdAll
get, getCompletionEventsList, in, inp, no, nop, out, rd, rdp, set, spawn
getCompletionEventsList, getS, inpS, inS, nopS, noS, outS, rdpS, rdS, setS, setS
enterACC, exit, getPassword, getPendingOperationsMap, getUsername, getUUID, isACCEntered
getCompletionEventsList, inAll, noAll, outAll, rdAll
getCompletionEventsList, uin, uinp, uno, unop, urd, urdp
public AdminACCProxyAgentSide(java.lang.Object aid) throws TucsonInvalidAgentIdException, TucsonInvalidTupleCentreIdException
aid
- the associated agent ID or name (String)TucsonInvalidAgentIdException
- if the given agent ID is NOT validTucsonInvalidTupleCentreIdException
- if the given tuple centre ID is NOT validpublic AdminACCProxyAgentSide(java.lang.Object aid, java.lang.String node, int port) throws TucsonInvalidAgentIdException, TucsonInvalidTupleCentreIdException
aid
- the associated agent ID or name (String)node
- the IP address of the target TuCSoN nodeport
- the TCP port of the target TuCSoN nodeTucsonInvalidAgentIdException
- if the given agent ID is NOT validTucsonInvalidTupleCentreIdException
- if the given tuple centre ID is NOT validpublic AdminACCProxyAgentSide(java.lang.Object aid, java.lang.String node, int port, java.lang.String uname, java.lang.String psw) throws TucsonInvalidAgentIdException, TucsonInvalidTupleCentreIdException
aid
- the associated agent ID or name (String)node
- the IP address of the target TuCSoN nodeport
- the TCP port of the target TuCSoN nodeuname
- the associated agent user namepsw
- the associated agent (encrypted) passwordTucsonInvalidAgentIdException
- if the given agent ID is NOT validTucsonInvalidTupleCentreIdException
- if the given tuple centre ID is NOT validpublic void add(AuthorisedAgent agent) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
localhost:20504
).add
in interface AdminACC
agent
- the authorised agentTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionpublic void add(Permission permission, java.lang.String policyName) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
localhost:20504
).add
in interface AdminACC
permission
- the permission to addpolicyName
- the name of the existing policy to extendTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionpublic void add(Policy policy) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
add
in interface AdminACC
policy
- the policy to addTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionpublic void install(RBACStructure rbac) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException, OperationNotAllowedException
AdminACC
localhost:20504
).install
in interface AdminACC
rbac
- the RBAC structure to addTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionOperationNotAllowedException
- if the requested TuCSoN operation is not allowed to the
requesting agentpublic void install(RBACStructure rbac, java.lang.Long timeout, java.lang.String n, int p) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException, OperationNotAllowedException
AdminACC
localhost
).install
in interface AdminACC
rbac
- the RBAC structure to addtimeout
- the maximum waiting time for the operation to completen
- the IP address where the target TuCSoN node is installed (only
local nodes are supported atm, that is, on localhost
)p
- the TCP port where the target TuCSoN node is installedTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionOperationNotAllowedException
- if the requested TuCSoN operation is not allowed to the
requesting agentpublic void add(Role role) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
localhost:20504
).add
in interface AdminACC
role
- the role to addTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionpublic void remove(java.lang.String agentName)
AdminACC
localhost:20504
).public void removePolicy(java.lang.String policyName) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
localhost:20504
).removePolicy
in interface AdminACC
policyName
- the name of the policy to removeTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionpublic void removeRBAC() throws OperationNotAllowedException, TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
localhost:20504
).removeRBAC
in interface AdminACC
OperationNotAllowedException
- if the requested TuCSoN operation is not allowed to the
requesting agentTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionpublic void removeRBAC(java.lang.Long l, java.lang.String n, int p) throws OperationNotAllowedException, TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
localhost
).removeRBAC
in interface AdminACC
l
- the maximum waiting time for the operation to completen
- the IP address where the target TuCSoN node is installed (only
local nodes are supported atm, that is, on localhost
)p
- the TCP port where the target TuCSoN node is installedOperationNotAllowedException
- if the requested TuCSoN operation is not allowed to the
requesting agentTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionpublic void removeRole(java.lang.String roleName) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
localhost:20504
).removeRole
in interface AdminACC
roleName
- the name of the role to removeTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionpublic void setBasicAgentClass(java.lang.String newBasicAgentClass) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
localhost:20504
).setBasicAgentClass
in interface AdminACC
newBasicAgentClass
- the new basic agent classTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionpublic void setRoleAgentClass(java.lang.String roleName, java.lang.String agentClass) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
localhost:20504
).setRoleAgentClass
in interface AdminACC
roleName
- the name of the role whose class association should be setagentClass
- the agent class to associate to the given roleTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionpublic void setRolePolicy(java.lang.String roleName, java.lang.String policyName) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AdminACC
localhost:20504
).setRolePolicy
in interface AdminACC
roleName
- the name of the rolepolicyName
- the name of the policyTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionprotected void log(java.lang.String msg)
ACCProxyAgentSide
log
in class ACCProxyAgentSide
msg
- String to display on the standard output