public interface DecryptedState extends Serializable
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncryptKey()
Get encryption key when no crypt filter is used
|
byte[] |
getEncryptKey(String cryptFilter)
Get encryption key corresponding to a cryptfilter
|
Integer |
getPerms()
Get perms flag
|
SecurityManager |
getSecurityManager(CosDocument cosDocument)
Get security manager for this decrypted state.
|
void |
setEncryptKey(byte[] encryptKey)
Set encryption key when no crypt filter is used
|
void |
setEncryptKey(String cryptFilter,
byte[] encryptKey)
Set encryption key corresponding to a cryptfilter
|
void |
setPerms(Integer mPerms)
Set perms flag
|
byte[] getEncryptKey()
byte[] getEncryptKey(String cryptFilter)
void setEncryptKey(String cryptFilter, byte[] encryptKey)
cryptFilter - Crypt filterencryptKey - byte array representing encryption keyvoid setEncryptKey(byte[] encryptKey)
encryptKey - byte array representing encryption keyvoid setPerms(Integer mPerms)
mPerms - Integer getPerms()
SecurityManager getSecurityManager(CosDocument cosDocument) throws PDFSecurityConfigurationException, PDFSecurityAuthorizationException, PDFCosParseException, PDFIOException, PDFSecurityException
DecryptedState, clients need to return
their own SecurityManager which will ensure that state information
in this class is correctly used while decrypting.cosDocument - PDFSecurityConfigurationExceptionPDFSecurityAuthorizationExceptionPDFCosParseExceptionPDFIOExceptionPDFSecurityExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved