|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rsa.ace.techservice.udpserver.AcePacketHeader
public class AcePacketHeader
This class represents the packet header common to both requests and responses. This is a packet parsing/building helper class.
| Field Summary | |
|---|---|
static int |
PACKET_HEADER_BYTES
|
| Constructor Summary | |
|---|---|
AcePacketHeader(AcePacketHeader requestHeader,
byte responseMessageType)
Constructs a default AcePacketHeader from a previous request. |
|
AcePacketHeader(java.nio.ByteBuffer buf)
Constructs an AcePacketHeader reading bytes from the stream passed. |
|
AcePacketHeader(byte messageType,
byte protocolVersion,
short applicationID,
byte encode,
byte options,
byte circuitID)
Constructs an AcePacketHeader with all values passed. |
|
| Method Summary | |
|---|---|
short |
getApplicationID()
Returns the Application ID from the header. |
byte |
getCircuitID()
Returns the Circuit ID from the header. |
byte |
getEncode()
Returns the packet encoding (encryption) from the header. |
byte |
getMessageType()
Message type accessor. |
byte |
getProtocolVersion()
Returns the packet protocol version number from the header. |
void |
setEncode(byte encodeByte)
Set the packet encoding (encryption) from the header. |
void |
setProtocolVersion(byte protocolVersion)
Sets the packet protocol version number in the header. |
java.lang.String |
toString()
Converts the AcePacketHeader to a string. |
void |
writeHeader(java.nio.ByteBuffer buf)
Write an AcePacketHeader to the ByteBuffer passed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PACKET_HEADER_BYTES
| Constructor Detail |
|---|
public AcePacketHeader(AcePacketHeader requestHeader,
byte responseMessageType)
request - A request from which everything but the response type are taken.responseMessageType - The response message type for the header.
public AcePacketHeader(java.nio.ByteBuffer buf)
throws AcePacketException
buf - The byte-buffer from which the header is initialized.
AcePacketException - If there is a problem getting the header data
from the byte buffer.
public AcePacketHeader(byte messageType,
byte protocolVersion,
short applicationID,
byte encode,
byte options,
byte circuitID)
messageType - The header message type.protocolVersion - The protocol version.applicationID - The application ID.encode - The message encoding.options - The options field (bit-mask).circuitID - The the circuit ID for subsequent requests.| Method Detail |
|---|
public byte getMessageType()
public short getApplicationID()
public byte getCircuitID()
public byte getEncode()
public void setEncode(byte encodeByte)
public byte getProtocolVersion()
public void setProtocolVersion(byte protocolVersion)
public void writeHeader(java.nio.ByteBuffer buf)
throws AcePacketException
buf - The byte-buffer to which the header is written.
AcePacketExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||