public interface EnableEncryption
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticateSecurity(Map params,
byte[] docID,
SecurityHandler handler,
DecryptedState decryptedState)
Authenticates specified security handler
|
boolean |
authenticateSecurity(SecurityHandler handler,
DecryptedState decryptedState)
Authenticates all security handlers specified by the encryption
parameters associated with the stored security manager
|
void |
decryptStream(String cryptFilter,
InputByteStream src,
OutputByteStream dest,
byte[] addKey)
Decrypts CosStream's content
|
byte[] |
decryptString(byte[] content,
byte[] addKey)
Decrypts CosString's content
|
void |
encryptStream(String cryptFilter,
InputByteStream src,
OutputByteStream dest,
byte[] addKey)
Encrypts CosStream's content
|
byte[] |
encryptString(byte[] content,
byte[] addKey)
Encrypts CosString's content
|
Map |
getDecryptionParameters() |
SecurityManager |
getDecryptionSecurityManager() |
Map |
getEncryptionParameters() |
SecurityManager |
getEncryptionSecurityManager() |
SecurityHandler |
getSecurityHandler()
Returns SecurityHandler which has been used to authenticate security.
|
EncryptionHandler |
getStreamDecryptionHandler(String name) |
EncryptionHandler |
getStreamEncryptionHandler(String name) |
EncryptionHandler |
getStringDecryptionHandler() |
EncryptionHandler |
getStringEncryptionHandler() |
void |
resetDecryptionSecurityManager() |
void |
resetEncryptionSecurityManager() |
void |
setDecryptionSecurityManager(SecurityManager securityMgr,
Map encryptParams,
byte[] id)
Sets the Security Manager used for encryption-related actions
|
void |
setEncryptionSecurityManager(SecurityManager securityMgr,
Map encryptParams,
byte[] id) |
void setDecryptionSecurityManager(SecurityManager securityMgr, Map encryptParams, byte[] id) throws PDFSecurityException
securityMgr - - Security ManagerencryptParams - - Encryption ParametersPDFSecurityExceptionvoid setEncryptionSecurityManager(SecurityManager securityMgr, Map encryptParams, byte[] id)
void resetEncryptionSecurityManager()
void resetDecryptionSecurityManager()
SecurityManager getEncryptionSecurityManager()
SecurityManager getDecryptionSecurityManager()
Map getEncryptionParameters() throws PDFSecurityAuthorizationException
Map getDecryptionParameters() throws PDFSecurityAuthorizationException
boolean authenticateSecurity(SecurityHandler handler, DecryptedState decryptedState) throws PDFSecurityAuthorizationException, PDFSecurityConfigurationException
handler - SecurityHandler to authenticatedecryptedState - Set null if password or credentials are used for
decryption, else set a valid decryption state.PDFSecurityAuthorizationExceptionPDFSecurityConfigurationExceptionboolean authenticateSecurity(Map params, byte[] docID, SecurityHandler handler, DecryptedState decryptedState) throws PDFSecurityAuthorizationException, PDFSecurityConfigurationException
params - docID - handler - decryptedState - PDFSecurityAuthorizationExceptionPDFSecurityConfigurationExceptionbyte[] encryptString(byte[] content,
byte[] addKey)
throws PDFSecurityException
content - byte sequence of the CosString's contentaddKey - CosString-object-specific addition to the encryption key
associated with the particular security handlerPDFSecurityExceptionbyte[] decryptString(byte[] content,
byte[] addKey)
throws PDFSecurityException
content - byte sequence of the CosString's contentaddKey - CosString-object-specific addition to the encryption key
associated with the particular security handlerPDFSecurityExceptionvoid decryptStream(String cryptFilter, InputByteStream src, OutputByteStream dest, byte[] addKey) throws PDFSecurityException, PDFIOException
src - source stream to decryptdest - destination for the decrypted streamaddKey - CosStream-object-specific addition to the encryption key
associated with the particular security handlerPDFIOExceptionPDFSecurityExceptionvoid encryptStream(String cryptFilter, InputByteStream src, OutputByteStream dest, byte[] addKey) throws PDFSecurityException, PDFIOException
src - source stream to encryptdest - destination for the encrypted streamaddKey - CosStream-object-specific addition to the encryption key
associated with the particular security handlerPDFSecurityExceptionPDFIOExceptionEncryptionHandler getStreamEncryptionHandler(String name) throws PDFSecurityConfigurationException, PDFSecurityAuthorizationException
name - PDFSecurityConfigurationExceptionPDFSecurityAuthorizationExceptionEncryptionHandler getStringEncryptionHandler() throws PDFSecurityConfigurationException, PDFSecurityAuthorizationException
PDFSecurityConfigurationExceptionPDFSecurityAuthorizationExceptionEncryptionHandler getStreamDecryptionHandler(String name) throws PDFSecurityConfigurationException, PDFSecurityAuthorizationException
name - PDFSecurityConfigurationExceptionPDFSecurityAuthorizationExceptionEncryptionHandler getStringDecryptionHandler() throws PDFSecurityConfigurationException, PDFSecurityAuthorizationException
PDFSecurityConfigurationExceptionPDFSecurityAuthorizationExceptionSecurityHandler getSecurityHandler()
SecurityHandlerCopyright © 2010 - 2020 Adobe. All Rights Reserved