Package edu.uiuc.ncsa.sas.thing.action
Class NewKeyAction
- java.lang.Object
-
- edu.uiuc.ncsa.sas.thing.Thing
-
- edu.uiuc.ncsa.sas.thing.action.Action
-
- edu.uiuc.ncsa.sas.thing.action.NewKeyAction
-
- All Implemented Interfaces:
SASConstants
public class NewKeyAction extends Action
Request a new symmetric key from the server with the given bit size. The format is{"action":"new_key", "arg":int}
Created by Jeff Gaynor
on 8/24/22 at 7:14 AM
-
-
Field Summary
-
Fields inherited from interface edu.uiuc.ncsa.sas.SASConstants
ACTION_EXECUTE, ACTION_INVOKE, ACTION_LOGOFF, ACTION_LOGON, ACTION_NEW_KEY, CLIENT_ID_HEAD, HEADER_SESSION_ID, KEYS_ACTION, KEYS_ARGUMENT, KEYS_COMMENT, KEYS_EXECUTABLE_NAME, KEYS_INTERNAL_ID, KEYS_METHOD, KEYS_PROMPT, KEYS_SAS, KEYS_STATE, KEYS_SUBJECT, KEYS_SUBJECT_ID, KEYS_SUBJECT_SESSION_ID, KEYS_TYPE, REQUEST_TYPE, RESPONSE_CONTENT, RESPONSE_MESSAGE, RESPONSE_PROMPT, RESPONSE_SESSION_ID, RESPONSE_STATUS, RESPONSE_STATUS_ERROR, RESPONSE_STATUS_OK, RESPONSE_SYMMETRIC_KEY, RESPONSE_TYPE, RESPONSE_TYPE_ERROR, RESPONSE_TYPE_LOGOFF, RESPONSE_TYPE_LOGON, RESPONSE_TYPE_NEW_KEY, RESPONSE_TYPE_OUTPUT, RESPONSE_TYPE_PROMPT
-
-
Constructor Summary
Constructors Constructor Description NewKeyAction()
NewKeyAction(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(net.sf.json.JSONObject json)
int
getSize()
net.sf.json.JSONObject
serialize()
Typically this is called by theClient
during POSTvoid
setSize(int size)
-
Methods inherited from class edu.uiuc.ncsa.sas.thing.action.Action
getComment, getId, getState, setComment, setId, setState, toString
-
-
-
-
Method Detail
-
getSize
public int getSize()
-
setSize
public void setSize(int size)
-
serialize
public net.sf.json.JSONObject serialize()
Description copied from class:Action
Typically this is called by theClient
during POST
-
deserialize
public void deserialize(net.sf.json.JSONObject json)
- Overrides:
deserialize
in classAction
-
-