|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.msg.BrokerAuthentication
public class BrokerAuthentication
This message is used for authenticating a broker with the server.
Broker sends this message to the server with its username, password, and
the name of the queue through which it wishes to receive messages. The
password is ignored by a standalone server; in a tournament situation it is
the game-token received from the tournament manager. The queue name may be
the username, but in a tournament situation using some sort of
difficult-to-guess hash (or possibly the game token) will make it more
difficult (but not impossible) for other brokers to intercept its messages.
If the login is accepted, a BrokerAccept message is returned.
| Constructor Summary | |
|---|---|
BrokerAuthentication(Broker broker)
Creates an instance from a broker |
|
BrokerAuthentication(String username,
String password)
Creates an instance from a username, password |
|
| Method Summary | |
|---|---|
long |
getBrokerTime()
Returns the system time set by the broker. |
String |
getPassword()
|
String |
getUsername()
|
void |
setBrokerTime(long time)
Sets the system time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrokerAuthentication(Broker broker)
public BrokerAuthentication(String username,
String password)
| Method Detail |
|---|
public String getUsername()
public String getPassword()
public void setBrokerTime(long time)
public long getBrokerTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||