|
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.ImportKeyAdapter
Class to import both private and public key file.
Nested Class Summary |
Nested classes inherited from class sos.koa.Task |
Task.ActionThread, Task.MonitoredThread |
Field Summary | |
private static int |
ITERATION_COUNT
The iteration count used by the PBE cipher. |
private static java.lang.String |
KEY_DECRYPTION_ALGORITHM
The type of encryption used to wrap the key. |
private int |
keyType
The type of key, either PRIVATE_KEYTYPE or PUBLICKEYTYPE. |
private static java.lang.String |
RSA_ALGORITHM
The cryptographic type of the wrapped key is RSA. |
private static byte[] |
SALT
The salt used in constructing the PBE cipher. |
Fields inherited from class sos.koa.Task |
maxSubTasks, monitor, stillWorking, subTaskCount, success |
Constructor Summary | |
ImportKeyAdapter(int keyType)
Constructs this adapter. |
Method Summary | |
(package private) void |
doAction()
Performs the actual work of this task. |
(package private) java.lang.String |
getFailureMessage()
What to print in failure dialog. |
(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 |
isPreStateAllowed(int state)
|
(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 |
logOpenedFile(java.io.File keyFile)
Writes a 'task opened file' entry in the log. |
(package private) void |
logStarted()
Writes a 'task started' entry in the log. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String KEY_DECRYPTION_ALGORITHM
private static final java.lang.String RSA_ALGORITHM
private static final byte[] SALT
private static final int ITERATION_COUNT
private int keyType
Constructor Detail |
public ImportKeyAdapter(int keyType)
normal_behavior requires keyType == PRIVATE_KEYTYPE || keyType == PUBLIC_KEYTYPE; modifies \everything;
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
boolean isPreStateAllowed(int state)
isPreStateAllowed
in class Task
int getSuccessState()
Task
getSuccessState
in class Task
void doAction() throws KOAException
Task
doAction
in class Task
KOAException
- if something goes wrong.void logStarted()
Task
logStarted
in class Task
void logOpenedFile(java.io.File keyFile)
Task
logOpenedFile
in class Task
void logFailed(java.lang.String reason)
Task
logFailed
in class Task
void logCompleted()
Task
logCompleted
in class Task
|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |