com.ibm.opencard.handler
Class Request
java.lang.Object
|
+--com.ibm.opencard.handler.Request
- public class Request
- extends java.lang.Object
Objects of this class are used for communication between agents
agency and handlers. When a Request is constructed, an ID, an argument
buffer and a parameter buffer are assigned. The ID may changed during
the lifetime of a request object. The buffers are supposed to be filled
and cleared if required.
- Version:
- $Id: Request.java,v 1.1 1999/12/02 16:06:03 damke Exp $
- See Also:
Buffer
|
Field Summary |
static int |
AGENCY
request to start a new agency |
static int |
AGENT
request for execution of an agent command |
static int |
AUTHENTICATION
request to perform an internal authentication of the card |
static int |
BUFFER
request to perform a buffer operation in the blackboard |
static int |
CARD
request for sending a command to the card |
static int |
CHAINING
request to create an initial chaining value |
static int |
CLOSE_LINK
request to close connection to a server |
static int |
DECIPHER
request to decipher data |
static int |
ENCIPHER
request to encipher data |
static int |
EXPORT
request used to export data from script to application |
static int |
FUNCTION
request to perform a generic function, for extendibility |
static int |
IDENTIFICATION
request for user identification, e.g. |
static int |
IMPORT
request used to import data from application to script |
static int |
MESSAGE
request to send a message to a remote agency |
static int |
OK
Indicates that no more requests need to be handled |
static int |
OPEN_LINK
request to open a connection to a server |
static int |
SIGNATURE
request to generate a digital signature (DES or RSA) |
static int |
UNDEFINED
undefined request |
static int |
VALIDATION
request to validate a digital signature (DES or RSA) |
|
Method Summary |
DataBuffer |
argument()
Return the argument buffer of this request. |
void |
argument(DataBuffer arg)
Set the argument buffer of this request. |
int |
id()
Return the ID of this buffer. |
TLVBuffer |
parameter()
Return the parameter buffer of this request. |
void |
parameter(TLVBuffer param)
Return the parameter buffer of this request. |
void |
setID(int id)
Set the ID of this buffer to the given value. |
java.lang.String |
toString()
Return this request as a string. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
OK
public static final int OK
- Indicates that no more requests need to be handled
AGENT
public static final int AGENT
- request for execution of an agent command
BUFFER
public static final int BUFFER
- request to perform a buffer operation in the blackboard
CARD
public static final int CARD
- request for sending a command to the card
CHAINING
public static final int CHAINING
- request to create an initial chaining value
DECIPHER
public static final int DECIPHER
- request to decipher data
ENCIPHER
public static final int ENCIPHER
- request to encipher data
EXPORT
public static final int EXPORT
- request used to export data from script to application
IDENTIFICATION
public static final int IDENTIFICATION
- request for user identification, e.g. PIN
IMPORT
public static final int IMPORT
- request used to import data from application to script
SIGNATURE
public static final int SIGNATURE
- request to generate a digital signature (DES or RSA)
VALIDATION
public static final int VALIDATION
- request to validate a digital signature (DES or RSA)
AGENCY
public static final int AGENCY
- request to start a new agency
FUNCTION
public static final int FUNCTION
- request to perform a generic function, for extendibility
MESSAGE
public static final int MESSAGE
- request to send a message to a remote agency
AUTHENTICATION
public static final int AUTHENTICATION
- request to perform an internal authentication of the card
OPEN_LINK
public static final int OPEN_LINK
- request to open a connection to a server
CLOSE_LINK
public static final int CLOSE_LINK
- request to close connection to a server
UNDEFINED
public static final int UNDEFINED
- undefined request
Request
public Request(int id,
DataBuffer argument,
TLVBuffer parameter)
- Create a request from the given arguments.
- Parameters:
id - The request idargument - The argument bufferparameter - The parameter buffer
id
public int id()
- Return the ID of this buffer.
- Returns:
- This request's ID.
setID
public void setID(int id)
- Set the ID of this buffer to the given value.
- Parameters:
The - new ID.
argument
public DataBuffer argument()
- Return the argument buffer of this request.
- Returns:
- This request's argument buffer
parameter
public TLVBuffer parameter()
- Return the parameter buffer of this request.
- Returns:
- This request's parameter buffer
argument
public void argument(DataBuffer arg)
- Set the argument buffer of this request.
- Parameters:
arg - The new argument buffer
parameter
public void parameter(TLVBuffer param)
- Return the parameter buffer of this request.
- Parameters:
param - The new parameter buffer
toString
public java.lang.String toString()
- Return this request as a string.
- Returns:
- This request's parameter buffer
- Overrides:
- toString in class java.lang.Object
|