public final class TucsonMetaACC
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static AdminACC |
getAdminContext(TucsonAgentId aid,
java.lang.String netid,
int portno,
java.lang.String username,
java.lang.String password)
Acquires an Administrative ACC from the TuCSoN node.
|
static EnhancedACC |
getContext(TucsonAgentId aid)
Gets the available most-comprehensive ACC from the TuCSoN Node Service
active on the default host ("localhost") on the default port (20504).
|
static EnhancedACC |
getContext(TucsonAgentId aid,
java.lang.String netid,
int portno)
Gets the available most-comprehensive ACC from the TuCSoN Node Service
active on the specified pair node:port where node is the ip address.
|
static NegotiationACC |
getNegotiationContext(java.lang.String aid)
Gets the available most-comprehensive ACC from the TuCSoN Node Service
active on the default host ("localhost") on the default port (20504).
|
static NegotiationACC |
getNegotiationContext(java.lang.String aid,
java.lang.String netid,
int portno)
Acquires the Negotiation ACC necessary to interact with TuCSoN according
to RBAC policies.
|
static NegotiationACC |
getNegotiationContext(TucsonAgentId aid)
Acquires the Negotiation ACC from the default TuCSoN node.
|
static NegotiationACC |
getNegotiationContext(TucsonAgentId aid,
java.lang.String netid,
int portno)
Acquires the Negotiation ACC from the TuCSoN node installed on the given
netid:portno IP:TCP address. |
static java.lang.String |
getVersion() |
public static AdminACC getAdminContext(TucsonAgentId aid, java.lang.String netid, int portno, java.lang.String username, java.lang.String password)
aid
- the ID of the agent willing to obtain adminstrative accessnetid
- the IP address of the TuCSoN node to contactportno
- the TCP port number of the TuCSoN node to contactusername
- the username of the administrative agentpassword
- the (encrypted) password of the administrative agentnull
otherwisepublic static EnhancedACC getContext(TucsonAgentId aid)
aid
- Who demand for the ACCpublic static EnhancedACC getContext(TucsonAgentId aid, java.lang.String netid, int portno)
aid
- Who demand for the ACCnetid
- The ip address of the target TuCSoN Node Serviceportno
- The listening port of the target TuCSoN Node Servicepublic static NegotiationACC getNegotiationContext(java.lang.String aid)
aid
- Who demands for the ACCpublic static NegotiationACC getNegotiationContext(java.lang.String aid, java.lang.String netid, int portno)
NegotiationACC.playDefaultRole()
is available.aid
- the ID of the agent demanding for the ACCnetid
- the IP address of the TuCSoN node to contactportno
- the TCP port number of the TuCSoN node to contactpublic static NegotiationACC getNegotiationContext(TucsonAgentId aid)
aid
- the ID of the agent demanding for the ACCpublic static NegotiationACC getNegotiationContext(TucsonAgentId aid, java.lang.String netid, int portno)
netid:portno
IP:TCP address.aid
- the ID of the agent demanding for the ACCnetid
- the IP address of the TuCSoN node to contactportno
- the TCP port number of the TuCSoN node to contactpublic static java.lang.String getVersion()