|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.SAWS.SAWSServer
public class SAWSServer
This is the SAWS Server class. It provides all the necessary API methods for SAWS API clients.
Nested Class Summary | |
---|---|
class |
SAWSServer.HeartbeatRecordWriting
This sub class is for generating heartbeat records. |
Field Summary | |
---|---|
int |
currentReadingFileNo
|
java.util.Vector |
logFileList
|
java.util.Vector |
recordBlockListFromOneLogFile
|
Constructor Summary | |
---|---|
SAWSServer()
This method is the constructor of SAWSServer. |
|
SAWSServer(int flag)
This method is the constructor of SAWSServer. |
Method Summary | |
---|---|
void |
closeLog()
This method closes the current log file. |
void |
createEncryptionKeystore()
This method is used by the SAWS command line mode to create the encryption keystore |
void |
createSigningKeystore()
This method is used by the SAWS command line mode to create the signing keystore |
void |
exportSigningPKC()
This method is used by the SAWS command line mode to output the PKC in the signing keystore. |
void |
importRootCA()
This method is used by the SAWS command line mode to import the root CA PKC into the signing keystore |
void |
importSigningPKC()
This method is used by the SAWS command line mode to import the signing PKC which is issued by root CA into the signing keystore |
void |
listSigningKeystore()
This method is used by the SAWS command line mode to list all entries in the signing keystore |
static void |
main(java.lang.String[] args)
This main method is SAWS command-line working mode. |
void |
outputPKCRequest()
This method is used by the SAWS command line mode to output the PKC request file from the signing keystore. |
java.util.Vector |
sawsReadOneLogFile()
This method is to read saws log files one at a time from the first log file to the last log file in the log file list logFileList. |
void |
sawsStart()
This method is to start SAWSServer to record client records. |
RecordStatus |
sendLogRecord(byte[] messageBlock)
This method is used by the SAWS API client to send a log message to SAWS server. |
RecordStatus |
sendLogRecord(byte[] messageBlock,
byte encryptionFlag)
This method is used by the SAWS API client to send a log message to SAWS server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Vector logFileList
public int currentReadingFileNo
public java.util.Vector recordBlockListFromOneLogFile
Constructor Detail |
---|
public SAWSServer()
public SAWSServer(int flag)
int
- flag =0: for SAWS command line mode initialisation;
flag=1: on top of flag=0, initializes SAWSServer for preparing to record client records.Method Detail |
---|
public void sawsStart()
public java.util.Vector sawsReadOneLogFile()
public void closeLog()
public RecordStatus sendLogRecord(byte[] messageBlock)
messageBlock
- is the log message to be sent.
public RecordStatus sendLogRecord(byte[] messageBlock, byte encryptionFlag)
messageBlock
- is the log message to be sent.encryptionFlag
- encryption flag to indicate the encryption requirement.
SAWSConstant.NoEncryptionFlag: log with no encryption;
SAWSConstant.SymmetricEncryptionFlag: log with symmetric encryption;
SAWSConstant.CommandFlag: command for SAWS to perform: the command contents are contained in messageBlock.
public void outputPKCRequest()
public void exportSigningPKC()
public void createEncryptionKeystore()
public void createSigningKeystore()
public void importRootCA()
public void importSigningPKC()
public void listSigningKeystore()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |