|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IAdminCommand
This interface is implemented by the admin command of the system
application. It contains the methods that return information about the applications
running on the server and user login methods. The typical client is not using the system
application directly but through the ServerContext object.
| Field Summary | |
|---|---|
static int |
SERVER_ERROR
Return code indicating an unexpected server error. |
static int |
SUCCESS
Return code indicating operation succeeded. |
static int |
WRONG_PASSWORD
Return code indicating the supplied password is wrong. |
static int |
WRONG_USER
Return code indicating the user does not exist. |
| Method Summary | |
|---|---|
IApplicationObjects |
getApplicationObjects(int appIdx)
Returns an object describing the structure of the application. |
java.lang.String[] |
getApplications()
Returns the names of the applications installed on the server. |
IChecksumInterfaces |
getCommandInterfaces(int appIdx,
int cmdIdx)
Returns the Checksummed interfaces implemented by the specified command. |
IChecksumInterfaces |
getFactoryInterfaces(int appIdx,
int cmdIdx)
Returns the Checksummed interfaces implemented by the specified command factory. |
int |
login(java.lang.String user,
char[] password)
Called by the server to login the user. |
IServerAuthInfo |
setupSecureMode(byte[] publicKey)
Called by the server context to setup secure mode. |
| Field Detail |
|---|
static final int SUCCESS
static final int SERVER_ERROR
static final int WRONG_PASSWORD
static final int WRONG_USER
| Method Detail |
|---|
java.lang.String[] getApplications()
throws java.io.IOException
java.io.IOException
IApplicationObjects getApplicationObjects(int appIdx)
throws java.io.IOException
getApplications() call.
appIdx - The application index.
java.io.IOException
IChecksumInterfaces getCommandInterfaces(int appIdx,
int cmdIdx)
throws java.io.IOException
getApplications() call.
The command index supplied is the position of the command name in the
commands array returned in the getApplicationObjects(appIdx) call.
java.io.IOException
IChecksumInterfaces getFactoryInterfaces(int appIdx,
int cmdIdx)
throws java.io.IOException
getApplications() call.
The factory index supplied is the position of the factory name in the
factories array returned in the getApplicationObjects(appIdx) call.
java.io.IOException
IServerAuthInfo setupSecureMode(byte[] publicKey)
throws java.io.IOException
publicKey - The public key of the client
java.io.IOException
int login(java.lang.String user,
char[] password)
throws java.io.IOException
user - The user namepassword - The user password
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||