public class PDEncryptionManager extends Object
Modifier and Type | Method and Description |
---|---|
static PDEncryptionDictionary |
getEncryptionDictionary(COSDictionary dictionary)
Deprecated.
This will get the correct security handler for the encryption dictionary.
|
static void |
registerSecurityHandler(String filterName,
Class handlerClass)
Deprecated.
This will allow the user to register new security handlers when unencrypting a
document.
|
public static void registerSecurityHandler(String filterName, Class handlerClass)
filterName
- As described in the encryption dictionary.handlerClass
- A subclass of PDEncryptionDictionary that has a constructor that takes
a COSDictionary.public static PDEncryptionDictionary getEncryptionDictionary(COSDictionary dictionary) throws IOException
dictionary
- The encryption dictionary.IOException
- If a security handler could not be found.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.