All Packages Class Hierarchy This Package Previous Next Index
Class icc.db.DBRequest
java.lang.Object
|
+----icc.net.Request
|
+----icc.net.DataRequest
|
+----icc.db.DBRequest
- public class DBRequest
- extends DataRequest
The DBRequest class represent a data request for updating or
retrieving information from the database.
-
anchor
- An empty database request to the authentication service.
-
AUTHENTICATION
- The name of a service that provides for user authentication.
-
illegalAccess
- An exception to specify that a user's access rights are insufficient.
-
DBRequest(String, int, Class)
-
-
DBRequest(String, Object, Class)
-
-
authenticate(String)
- Creates a database request for a user to authenticate him/herself.
-
authenticate(String, byte[], byte[])
- Creates a database request for an agent or mediator to authenticate
itself.
-
changePassword(String, String)
- Creates a data request for a user to change his/her password.
-
checkTrust(String)
- Creates a data request for a user to check for permanent trust with
respect to a mediator's owner.
-
raise()
- Stores an ill-formed request exception as the request's result.
-
raise(Exception)
- Stores the specified exception as the request's result.
-
removeTrust(String)
- Creates a data request for a user to remove permanent trust with
respect to a mediator's owner.
-
serve(Object)
-
-
setInput(Object, int)
-
-
setTrust(String)
- Creates a data request for a user to indicate permanent trust with
respect to a mediator's owner.
AUTHENTICATION
public static final String AUTHENTICATION
- The name of a service that provides for user authentication.
anchor
public static final DBRequest anchor
- An empty database request to the authentication service.
illegalAccess
public static final Exception illegalAccess
- An exception to specify that a user's access rights are insufficient.
DBRequest
protected DBRequest(String type,
int n,
Class output)
DBRequest
protected DBRequest(String type,
Object input,
Class output)
setInput
protected void setInput(Object obj,
int n)
- Overrides:
- setInput in class DataRequest
serve
protected void serve(Object output)
- Overrides:
- serve in class DataRequest
raise
public void raise(Exception e)
- Stores the specified exception as the request's result.
- Parameters:
- e - an exception
- Overrides:
- raise in class DataRequest
raise
public void raise()
- Stores an ill-formed request exception as the request's result.
- Overrides:
- raise in class DataRequest
authenticate
public static DBRequest authenticate(String pwd)
- Creates a database request for a user to authenticate him/herself.
This request can only be submitted by the partner self.
If successful, an appropriate event is posted.
- Parameters:
- pwd - the user's password.
- Returns:
- a database request to authenticate oneself
- See Also:
- SERVICE, UserEvents
authenticate
public static DBRequest authenticate(String name,
byte message[],
byte signature[])
- Creates a database request for an agent or mediator to authenticate
itself.
- Parameters:
- name - registration name
- message - the signed message
- signature - the message's signature
- Returns:
- a database request to authenticate by signature
- See Also:
- SERVICE
changePassword
public DataRequest changePassword(String old,
String pwd)
- Creates a data request for a user to change his/her password.
This request can only be submitted by the partner self.
- Parameters:
- old - the user's old password.
- pwd - the user's new password.
- Returns:
- a database request to change one's password
- See Also:
- SERVICE
setTrust
public DataRequest setTrust(String site)
- Creates a data request for a user to indicate permanent trust with
respect to a mediator's owner.
This request can only be submitted by the partner self.
- Parameters:
- site - the name of the mediator's owner or site
- Returns:
- a database request to indicate trust
- See Also:
- SERVICE
removeTrust
public DataRequest removeTrust(String site)
- Creates a data request for a user to remove permanent trust with
respect to a mediator's owner.
This request can only be submitted by the partner self.
- Parameters:
- site - the name of the mediator's owner or site
- Returns:
- a database request to remove trust
- See Also:
- SERVICE
checkTrust
public DataRequest checkTrust(String site)
- Creates a data request for a user to check for permanent trust with
respect to a mediator's owner.
This request can only be submitted by the partner self.
- Parameters:
- site - the name of the mediator's owner or site
- Returns:
- a database request to check trust
- See Also:
- SERVICE
All Packages Class Hierarchy This Package Previous Next Index
This website has been archived and is no longer maintained.