Package com.ironcorelabs.sdk
Class IronSdkAdvanced
- java.lang.Object
-
- com.ironcorelabs.sdk.IronSdkAdvanced
-
public final class IronSdkAdvanced extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
DocumentDecryptUnmanagedResult
documentDecryptUnmanaged(byte[] encryptedData, byte[] encryptedDeks)
Decrypt the provided encrypted document with the encrypted document encryption keys (EDEKs).DocumentEncryptUnmanagedResult
documentEncryptUnmanaged(byte[] documentData, DocumentEncryptOpts encryptOpts)
Encrypt the provided document bytes.protected void
finalize()
-
-
-
Method Detail
-
documentEncryptUnmanaged
public final DocumentEncryptUnmanagedResult documentEncryptUnmanaged(byte[] documentData, DocumentEncryptOpts encryptOpts) throws java.lang.Exception
Encrypt the provided document bytes. Return the encrypted document encryption keys (EDEKs) instead of creating a document entry in the IronCore webservice.- Parameters:
documentData
- bytes of the document to encryptencryptOpts
- optional document encrypt parameters- Throws:
java.lang.Exception
-
documentDecryptUnmanaged
public final DocumentDecryptUnmanagedResult documentDecryptUnmanaged(byte[] encryptedData, byte[] encryptedDeks) throws java.lang.Exception
Decrypt the provided encrypted document with the encrypted document encryption keys (EDEKs).- Parameters:
encryptedData
- bytes of encrypted document. Should be the same bytes returned fromdocumentEncryptUnmanaged(byte[], DocumentEncryptOpts)
encryptedDeks
- encrypted document encryption keys. Should be the same edeks returned fromdocumentEncryptUnmanaged(byte[], DocumentEncryptOpts)
- Returns:
DocumentDecryptResult
includes the id of the provided document as well as the decrypted document bytes- Throws:
java.lang.Exception
-
delete
public void delete()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-