Klasse PGEncryptionUtil
java.lang.Object
de.uplanet.lucy.server.file.encryption.PGEncryptionUtil
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voiddeleteEncryptedFile(IProcessingContext p_ctx, String p_strFieldGuid, Object p_recId) Delete a encrypted file from storage.static voidstatic FilegetDecryptedFile(IProcessingContext p_ctx, String p_strFieldGuid, Object p_recId) Get a file from file storage and decrypt it.static voidwriteEncryptedFile(IProcessingContext p_ctx, File p_file, String p_strFieldGuid, Object p_recId, String p_strFileName) Encrypt a given file and move it to a file storage.
-
Konstruktordetails
-
PGEncryptionUtil
public PGEncryptionUtil()
-
-
Methodendetails
-
getDecryptedFile
public static File getDecryptedFile(IProcessingContext p_ctx, String p_strFieldGuid, Object p_recId) throws Exception Get a file from file storage and decrypt it. The returned unencrypted files should be deleted by the user after usage.- Parameter:
p_ctx- processing contextp_strFieldGuid- field GUIDp_recId- record id- Gibt zurück:
- a decrypted file
- Löst aus:
Exception- if any occurs
-
writeEncryptedFile
public static void writeEncryptedFile(IProcessingContext p_ctx, File p_file, String p_strFieldGuid, Object p_recId, String p_strFileName) throws Exception Encrypt a given file and move it to a file storage.- Parameter:
p_ctx- processing contextp_file- filep_strFieldGuid- field GUIDp_recId- record idp_strFileName- the destination file name- Löst aus:
Exception- if any occurs
-
deleteEncryptedFile
public static void deleteEncryptedFile(IProcessingContext p_ctx, String p_strFieldGuid, Object p_recId) throws Exception Delete a encrypted file from storage.- Parameter:
p_ctx- processing contextp_strFieldGuid- field GUIDp_recId- record id- Löst aus:
Exception- if any occurs
-
encrypt
-