Decrypt Microsoft Azure RMS Protected Files
This section describes the steps required to use Panopticon to decrypt files protected with Microsoft Azure Rights Management System (RMS) with the Java API. For more information about the objects and methods, refer to the Javadoc documentation provided in the package.
To decrypt protected files
-
Construct a
PanopticonLicense
object, using the company name and 31-character license key that Micro Focus has provided. -
Start a Panopticon session by constructing a
Panopticon
object. Pass to the constructor yourPanopticonLicense
object, the absolute path of thebin
directory in the Panopticon installation, and the absolute path of a directory where Panopticon can create temporary files. -
Determine the type and level of support for a particular file by calling the
getEncryptionInfo()
method of thePanopticon
object with the absolute path of the file. -
Configure Panopticon to use the RMS credentials for your application:
-
Construct an
RMSCredentials
object with the credentials for your application. -
Call the
configureRMS()
method of thePanopticon
object.
-
-
If decryption is supported, decrypt the file by calling the
decryptFile()
method. Use absolute paths to specify the input file and the output file to create. -
When you have finished using Panopticon , call the
close()
method to end the session.TIP: To do this automatically, use the
Panopticon
object in a try-with-resources statement.