|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsos.koa.Task
sos.koa.DecryptAdapter
Class to decrypt the votes.
Nested Class Summary |
Nested classes inherited from class sos.koa.Task |
Task.ActionThread, Task.MonitoredThread |
Field Summary | |
(package private) static java.lang.String |
DESEDE_DECRYPT_ALGORITHM
The algorithm used by the desedeCipher. |
(package private) javax.crypto.Cipher |
desedeCipher
The session key cipher for decrypting the vote information. |
(package private) java.util.ArrayList |
errors
A list containing errors encountered this far. |
(package private) boolean |
keepRunning
Indicates whether to keep decrypting. |
(package private) int |
rowCount
The number of votes decrypted this far. |
(package private) static java.lang.String |
RSA_ALGORITHM
The algorithm used by the rsaCipher . |
(package private) javax.crypto.Cipher |
rsaCipher
The RSA cipher for decrypting the session key. |
private static byte[] |
SALT
The salt value used to generate the session keys. |
Fields inherited from class sos.koa.Task |
maxSubTasks, monitor, stillWorking, subTaskCount, success |
Constructor Summary | |
DecryptAdapter()
Constructs this adapter. |
Method Summary | |
private java.lang.String |
decrypt(byte[] encryptedVote)
Decrypts one vote. |
(package private) void |
doAction()
Decrypts the votes in rawVotes . |
(package private) java.lang.Object |
getAdditionalInfo()
Gets even more information about this (completed) task. |
(package private) java.lang.String[] |
getErrors()
Gets the errors encountered during execution of this task. |
(package private) java.lang.String |
getFailureMessage()
What to print in failure dialog. |
(package private) java.lang.String |
getInfo()
Gets information that should be displayed if this task completes successfully. |
(package private) java.lang.String |
getSuccessMessage()
What to print in success dialog. |
(package private) int |
getSuccessState()
The application state after successful termination of this task. |
(package private) java.lang.String |
getTitle()
The title of this task. |
(package private) boolean |
isAdditionalInfoAvailable()
Indicates whether even more information is available about this (completed) task. |
(package private) boolean |
isPreStateAllowed(int state)
|
boolean |
isProgressMonitoredTask()
Indicates whether a progress monitor should be popped up. |
(package private) void |
logCompleted()
Writes a 'task completed' entry in the log. |
(package private) void |
logFailed(java.lang.String reason)
Writes a 'task failed' entry in the log. |
(package private) void |
logStarted()
Writes a 'task started' entry in the log. |
(package private) void |
stopAction()
Interrupts the execution of doAction . |
Methods inherited from class sos.koa.Task |
actionPerformed, clear, getWarningMessage, isCancelableTask, isDangerousTask, isModalTask, logCanceled, logOpenedFile, popupAdditionalInfo, popupAdditionalInfo, popupFailure, popupGetFile, popupGetPassword, popupNext, popupNextOrBack, popupSuccess, popupWarning, setMaxSubTasks, setSubTaskCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final byte[] SALT
static final java.lang.String RSA_ALGORITHM
rsaCipher
.
static final java.lang.String DESEDE_DECRYPT_ALGORITHM
javax.crypto.Cipher rsaCipher
javax.crypto.Cipher desedeCipher
boolean keepRunning
int rowCount
java.util.ArrayList errors
Constructor Detail |
public DecryptAdapter()
Method Detail |
java.lang.String getTitle()
Task
getTitle
in class Task
java.lang.String getSuccessMessage()
Task
getSuccessMessage
in class Task
java.lang.String getFailureMessage()
Task
getFailureMessage
in class Task
java.lang.String getInfo()
Task
getInfo
in class Task
boolean isPreStateAllowed(int state)
isPreStateAllowed
in class Task
int getSuccessState()
Task
getSuccessState
in class Task
public boolean isProgressMonitoredTask()
Task
isProgressMonitoredTask
in class Task
false
.void logStarted()
Task
logStarted
in class Task
void logFailed(java.lang.String reason)
Task
logFailed
in class Task
void logCompleted()
Task
logCompleted
in class Task
void doAction() throws KOAException
rawVotes
.
doAction
in class Task
KOAException
- if decryption failed.void stopAction()
doAction
.
stopAction
in class Task
private java.lang.String decrypt(byte[] encryptedVote) throws KOAException
encryptedVote
- the vote to decrypt.
KOAException
- if decryption failed.java.lang.Object getAdditionalInfo()
Task
Object
can be used in a dialog message.
getAdditionalInfo
in class Task
boolean isAdditionalInfoAvailable()
Task
isAdditionalInfoAvailable
in class Task
java.lang.String[] getErrors()
|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |