edu.uiuc.cs.seclab.modem.xbee.cmd
Class XBeeKeyCmd

java.lang.Object
  extended by edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
      extended by edu.uiuc.cs.seclab.modem.xbee.XBeeParamCmd
          extended by edu.uiuc.cs.seclab.modem.xbee.cmd.XBeeKeyCmd
All Implemented Interfaces:
java.lang.Cloneable

public class XBeeKeyCmd
extends XBeeParamCmd

ATKY - Set AES key (write-only)


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
XBeeAtCmd.Mode
 
Field Summary
static java.lang.String CMD
           
protected  AesKey key
           
static int KEY_LEN
           
 
Constructor Summary
XBeeKeyCmd()
           
 
Method Summary
 int getApiParamLength()
          Determine the maximum size of the parameter in bytes.
 java.lang.String getAtCmd()
          Get the two-character AT code associated with this command.
 java.lang.Object getRawSetterParams()
          Return a semantic (non-string) setter parameter representation.
 java.lang.String getShortDesc()
          Return a short (one-line) description for command suitable for display in parameter table.
 java.lang.String marshalApiSetterParams()
          Convert command parameters to API-mode format.
 java.lang.String marshalPtSetterParams()
          Convert command parameters to PassThru-mode format.
 void setKey(AesKey key_)
           
 java.lang.Object unmarshalApiGetterParams(java.lang.String regVal)
          Convert command parameters from API-mode format to raw format.
 java.lang.Object unmarshalPtGetterParams(java.lang.String regVal)
          Convert command parameters from PassThru-mode format.
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeParamCmd
clone, convertApiResponse, getApiParams, isReadOnly, parmEq, unmarshalRespParams
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
getPktImpl, processResp
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD

public static final java.lang.String CMD
See Also:
Constant Field Values

key

protected AesKey key

KEY_LEN

public static final int KEY_LEN
See Also:
Constant Field Values
Constructor Detail

XBeeKeyCmd

public XBeeKeyCmd()
Method Detail

getApiParamLength

public int getApiParamLength()
                      throws ModemException
Description copied from class: XBeeParamCmd
Determine the maximum size of the parameter in bytes. This could correspond to the size of a datatype for numeric parameters, or the maximum length of a string for a string parameter.

Specified by:
getApiParamLength in class XBeeParamCmd
Returns:
Throws:
ModemException

getAtCmd

public java.lang.String getAtCmd()
Description copied from class: XBeeAtCmd
Get the two-character AT code associated with this command.

Specified by:
getAtCmd in class XBeeAtCmd

getRawSetterParams

public java.lang.Object getRawSetterParams()
Description copied from class: XBeeParamCmd
Return a semantic (non-string) setter parameter representation. For example, return an Integer object.

Specified by:
getRawSetterParams in class XBeeParamCmd

getShortDesc

public java.lang.String getShortDesc()
Description copied from class: XBeeAtCmd
Return a short (one-line) description for command suitable for display in parameter table.

Specified by:
getShortDesc in class XBeeAtCmd

marshalApiSetterParams

public java.lang.String marshalApiSetterParams()
                                        throws ModemException
Description copied from class: XBeeParamCmd
Convert command parameters to API-mode format.

Specified by:
marshalApiSetterParams in class XBeeParamCmd
Returns:
Throws:
ModemException

marshalPtSetterParams

public java.lang.String marshalPtSetterParams()
                                       throws ModemException
Description copied from class: XBeeParamCmd
Convert command parameters to PassThru-mode format.

Specified by:
marshalPtSetterParams in class XBeeParamCmd
Returns:
Throws:
ModemException

setKey

public void setKey(AesKey key_)
            throws ModemException
Throws:
ModemException

unmarshalApiGetterParams

public java.lang.Object unmarshalApiGetterParams(java.lang.String regVal)
                                          throws ModemException
Description copied from class: XBeeParamCmd
Convert command parameters from API-mode format to raw format.

Specified by:
unmarshalApiGetterParams in class XBeeParamCmd
Returns:
Throws:
ModemException

unmarshalPtGetterParams

public java.lang.Object unmarshalPtGetterParams(java.lang.String regVal)
                                         throws ModemException
Description copied from class: XBeeParamCmd
Convert command parameters from PassThru-mode format. Not currently used, since API-mode is used throughout rest of framework.

Specified by:
unmarshalPtGetterParams in class XBeeParamCmd
Returns:
Throws:
ModemException