public class DecryptionFactory extends Object
| Constructor and Description |
|---|
DecryptionFactory(byte[] ID,
byte[] encryptionPassword) |
DecryptionFactory(byte[] id,
Certificate certificate,
PrivateKey key)
version for using public certificates
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] data,
String ref,
boolean isEncryption,
String cacheName,
boolean alwaysUseRC4,
boolean isString)
reads the line/s from file which make up an object
includes move
|
byte[] |
decryptString(byte[] newString,
String objectRef) |
void |
dispose() |
byte[] |
extractCertificateData(byte[][] recipients,
Certificate certificate,
Key key)
cycle through all possible values to find match (only tested with Bouncy castle)
|
void |
flush() |
boolean |
getBooleanValue(int key)
show if file can be displayed
|
byte[] |
getEncHash() |
int |
getPDFflag(Integer flag) |
boolean |
hasPassword()
show if U or O value present
|
boolean |
isAES() |
void |
readEncryptionObject(PdfObject encyptionObj,
PdfFileReader pdfFileReader)
extract metadata for encryption object
|
void |
reset(byte[] encryptionPassword) |
void |
setCipherNull() |
public DecryptionFactory(byte[] ID,
byte[] encryptionPassword)
public DecryptionFactory(byte[] id,
Certificate certificate,
PrivateKey key)
id - certificate - key - public void readEncryptionObject(PdfObject encyptionObj, PdfFileReader pdfFileReader) throws PdfSecurityException
PdfSecurityExceptionpublic byte[] extractCertificateData(byte[][] recipients,
Certificate certificate,
Key key)
certificate - key - public byte[] decrypt(byte[] data,
String ref,
boolean isEncryption,
String cacheName,
boolean alwaysUseRC4,
boolean isString)
throws PdfSecurityException
PdfSecurityExceptionpublic boolean getBooleanValue(int key)
public boolean isAES()
public byte[] decryptString(byte[] newString,
String objectRef)
throws PdfSecurityException
PdfSecurityExceptionpublic int getPDFflag(Integer flag)
public void reset(byte[] encryptionPassword)
public void flush()
public void dispose()
public boolean hasPassword()
public void setCipherNull()
public byte[] getEncHash()
Copyright © 2017. All rights reserved.