Package org.cyclos.impl
Interface ApplicationHandler
-
public interface ApplicationHandlerHandler for basic configuration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringdecrypt(byte[] input, byte[] mask)AES decryption using the license key, with a given mask.Stringdecrypt(String input, byte[] mask)AES decryption of a Base-64 encoded string using the license key, with a given mask.byte[]encrypt(String input, byte[] mask)AES encryption using the license key, with a given mask.StringencryptAsString(String input, byte[] mask)Base64-encoding of AES encryption using the license key, with a given mask.voidfinishArchiving(int retry)Finishes the archiving process.ApplicationgetApplication()Returns the Application instanceCyclosPropertiesgetCyclosProperties()Returns theCyclosPropertiesinstanceIdMaskgetIdMask()Returns theIdMaskwhich is used to mask / unmask identifiers sent to / received from clientsbooleanisArchivingEnabled()Indicates whether data archiving is enabledbooleanisInitialized()Returns whether the initialization process is completedbooleanisShuttingDown()Returns whether the application is in the shutdown process
-
-
-
Method Detail
-
decrypt
String decrypt(byte[] input, byte[] mask)
AES decryption using the license key, with a given mask.
-
decrypt
String decrypt(String input, byte[] mask)
AES decryption of a Base-64 encoded string using the license key, with a given mask.
-
encrypt
byte[] encrypt(String input, byte[] mask)
AES encryption using the license key, with a given mask.
-
encryptAsString
String encryptAsString(String input, byte[] mask)
Base64-encoding of AES encryption using the license key, with a given mask.
-
finishArchiving
void finishArchiving(int retry)
Finishes the archiving process. Also notifies the external application to start archiving data.
-
getApplication
Application getApplication()
Returns the Application instance
-
getCyclosProperties
CyclosProperties getCyclosProperties()
Returns theCyclosPropertiesinstance
-
getIdMask
IdMask getIdMask()
Returns theIdMaskwhich is used to mask / unmask identifiers sent to / received from clients
-
isArchivingEnabled
boolean isArchivingEnabled()
Indicates whether data archiving is enabled
-
isInitialized
boolean isInitialized()
Returns whether the initialization process is completed
-
isShuttingDown
boolean isShuttingDown()
Returns whether the application is in the shutdown process
-
-