Class PrometheusThreadRenewSecurity
java.lang.Object
io.github.tonywasher.joceanus.prometheus.threads.PrometheusThreadRenewSecurity
- All Implemented Interfaces:
TethysUIThread<PrometheusDataSet>
public class PrometheusThreadRenewSecurity
extends Object
implements TethysUIThread<PrometheusDataSet>
Thread to renew security in the data set. A new ControlKey will be created using the same
password as the existing security, together with a new set of encryption DataKeys. All encrypted
fields in the data set will then be re-encrypted with the new ControlKey, and finally the
ControlData will be updated to use the new controlKey. Data will be left in the Updated state
ready for committing the change to the database.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor (Event Thread). -
Method Summary
Modifier and TypeMethodDescriptionobtain the task name.performTask(TethysUIThreadManager pManager) Perform the task.voidprocessResult(PrometheusDataSet pResult) process result.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.thread.TethysUIThread
interruptForCancel, prepareTask
-
Constructor Details
-
PrometheusThreadRenewSecurity
Constructor (Event Thread).- Parameters:
pControl- data control
-
-
Method Details
-
getTaskName
Description copied from interface:TethysUIThreadobtain the task name.- Specified by:
getTaskNamein interfaceTethysUIThread<PrometheusDataSet>- Returns:
- the task name
-
performTask
Description copied from interface:TethysUIThreadPerform the task.- Specified by:
performTaskin interfaceTethysUIThread<PrometheusDataSet>- Parameters:
pManager- the thread manager- Returns:
- the result
- Throws:
OceanusException- on error
-
processResult
Description copied from interface:TethysUIThreadprocess result.- Specified by:
processResultin interfaceTethysUIThread<PrometheusDataSet>- Parameters:
pResult- the result
-