|
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.AbstractAceResponse
public abstract class AbstractAceResponse
This abstract class implements many of the methods required for an AceResponse. It must be extended by classes representing a specific type of response. This class handles response processing common to all response classes.
| Constructor Summary | |
|---|---|
AbstractAceResponse(AceDatagram packet,
AceRequest request)
Constructor to build a V5 response to the request provided. |
|
AbstractAceResponse(AceRequest requestPacket)
Constructor to build a V5 response to the request provided. |
|
| Method Summary | |
|---|---|
void |
buildResponsePacket()
Builds a response packet by writing the AceResponse to the byte-buffer. |
java.nio.ByteBuffer |
getBuffer()
Get the response Byte-buffer. |
AcePacketHeader |
getHeader()
This method provides the protocol version of the response packet. |
byte[] |
getNewNodeSecret()
Used on the Agent side to get a new node secret from the Server. |
byte[] |
getNodeSecret()
|
java.net.DatagramPacket |
getPacket()
Get a response packet by writing the AceResponse to the byte-buffer. |
byte |
getProtocolVersion()
Returns the protocol version of a response. |
AceRequest |
getRequestToThisResponse()
Used on the Agent side to get data in the original request. |
byte |
getResponseMsgType()
Returns the response message type for an Access-Denied response. |
int |
getResponseSize()
Returns the size of a response. |
int |
getResponseStatus()
This method provides the status for the response packet. |
AcePacketTrailer |
getTrailer()
|
boolean |
haveNodeSecret()
Common method for checking is we have a nodesecret. |
void |
processResponse()
Reads a response packet by reading from the byte-buffer. |
java.nio.ByteBuffer |
readResponse()
read the status. |
void |
setNodeSecret(byte[] buf)
Common method for overide a nodesecret.Needed for older protocol |
java.lang.String |
toString()
Converts the AbstractAceResponse to a string. |
void |
writeResponse(java.nio.ByteBuffer buf)
Write an AceResponse header to the stream passed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAceResponse(AceRequest requestPacket)
throws AcePacketException
requestPacket - The request packet to which this response is being created.
AcePacketException - If any subordinate constructors encounter an error.
public AbstractAceResponse(AceDatagram packet,
AceRequest request)
throws AcePacketException
requestPacket - The request packet to which this response is being created.
AcePacketException - If any subordinate constructors encounter an error.| Method Detail |
|---|
public void writeResponse(java.nio.ByteBuffer buf)
throws AcePacketException
writeResponse in interface AceResponsebuf - The byte buffer to which the response is writtem.
AcePacketException - If there's a problem writing the data
output stream.
public void buildResponsePacket()
throws AcePacketException
buildResponsePacket in interface AceResponseAcePacketException - If there is a problem writing the packet byte-buffer.
public void processResponse()
throws AcePacketException
processResponse in interface AceResponseAcePacketException - If there is a problem reading the packet byte-buffer.
public void setNodeSecret(byte[] buf)
throws AcePacketException
AcePacketExceptionpublic boolean haveNodeSecret()
getCircuitID
public java.nio.ByteBuffer readResponse()
throws AcePacketException
readResponse in interface AceResponsebuf - The byte buffer to which is the response.
AcePacketException - If there's a problem writing the data
output stream.
public java.net.DatagramPacket getPacket()
throws AcePacketException
getPacket in interface AceResponseAcePacketException - If there is a problem writing the packet byte-buffer.public int getResponseSize()
getResponseSize in interface AceResponsepublic byte getProtocolVersion()
getProtocolVersion in interface AceResponsepublic byte getResponseMsgType()
getResponseMsgType in interface AceResponsepublic int getResponseStatus()
AceResponse
getResponseStatus in interface AceResponsepublic java.nio.ByteBuffer getBuffer()
public java.lang.String toString()
toString in interface AceResponsetoString in class java.lang.Objectpublic byte[] getNodeSecret()
public AcePacketHeader getHeader()
AceResponse
getHeader in interface AceResponsepublic AcePacketTrailer getTrailer()
getTrailer in interface AceResponsepublic byte[] getNewNodeSecret()
public AceRequest getRequestToThisResponse()
|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||