|
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.AbstractAceRequest
public abstract class AbstractAceRequest
This class is the Ace Request Core abstract implementation.
This class handles data associated with an agent request. It must be extended by classes representing a specific type of request. This provides many implentations for the AceRequest inteface.
| Constructor Summary | |
|---|---|
AbstractAceRequest(AceDatagram packet)
Constructs an AbstractAceRequest from the Datagram passed. |
|
AbstractAceRequest(byte[] requestData)
Constructs an AbstractAceRequest from the array passed. |
|
AbstractAceRequest(byte messageType,
byte protocolVersion,
byte encode,
byte options,
byte circuitID,
AgentConfig agentConfig)
Constructs an AbstractAceRequest from the arguments passed. |
|
| Method Summary | |
|---|---|
AcePinUtil |
getAcePinUtil()
|
AgentConfig |
getAgentConfig()
|
java.nio.ByteBuffer |
getBuffer()
Get the request Byte-buffer. |
AgentCipherProvider |
getCipherProvider()
Returns the cipher provider used to decrypt this request. |
long |
getCreationTime()
Get the requests creation time. |
int |
getEncryptOffset()
Common method for overide the offset.Needed for older protocol |
AcePacketHeader |
getHeader()
Returns the request header. |
byte[] |
getNonce()
Get the request's nonce, if any. |
AceDatagram |
getPacket()
Provides the original packet received from the agent. |
byte |
getProtocolVersion()
Provides the Protocol version from the header. |
byte[] |
getSecretKey()
|
byte[] |
getWpCode()
|
boolean |
haveNodeSecret()
Common method for checking is we have a nodesecret. |
boolean |
haveSecretKey()
Common method for checking is we have a nodesecret. |
int |
processRequest()
Process the header from the Datagram passed. |
void |
readTrailer(java.nio.ByteBuffer buf)
Common method for reading a packet trailer. |
void |
setEncode(byte encode)
Common method for overide the encode field. |
void |
setEncryptOffset(int offset)
Common method for overide the offset.Needed for older protocol |
void |
setNodeSecret(byte[] buf)
Common method for overide a nodesecret.Needed for older protocol |
void |
setSecretKey(byte[] secretKey)
|
void |
setTrailer(AcePacketTrailer trailer)
|
java.lang.String |
toString()
Converts the AbstractAceRequest to a string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAceRequest(byte[] requestData)
packet - The data used to construct the AceInputPacket.public AbstractAceRequest(AceDatagram packet)
packet - The data used to construct the AceInputPacket.
public AbstractAceRequest(byte messageType,
byte protocolVersion,
byte encode,
byte options,
byte circuitID,
AgentConfig agentConfig)
throws AcePacketException
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.
AcePacketException| Method Detail |
|---|
public int processRequest()
throws AcePacketException
AcePacketException - If a problem occurs finding the node secret
or decrypting the packet.public void setEncode(byte encode)
public void setEncryptOffset(int offset)
public int getEncryptOffset()
public void setNodeSecret(byte[] buf)
public boolean haveNodeSecret()
getCircuitID
public void readTrailer(java.nio.ByteBuffer buf)
throws AcePacketException
AcePacketExceptiongetCircuitIDpublic byte getProtocolVersion()
getProtocolVersionpublic AcePacketHeader getHeader()
AcePacketHeaderpublic long getCreationTime()
public byte[] getNonce()
public AgentCipherProvider getCipherProvider()
AgentCipherProvider
public AceDatagram getPacket()
throws AcePacketException
AcePacketExceptionpublic java.nio.ByteBuffer getBuffer()
public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] getSecretKey()
public void setSecretKey(byte[] secretKey)
secretKey - The secretKey to set.public boolean haveSecretKey()
getCircuitIDpublic byte[] getWpCode()
public void setTrailer(AcePacketTrailer trailer)
trailer - The trailer to set.public AgentConfig getAgentConfig()
public AcePinUtil getAcePinUtil()
|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||