com.lowagie.text.pdf
Class PdfPublicKeySecurityHandler
java.lang.Object
com.lowagie.text.pdf.PdfPublicKeySecurityHandler
public class PdfPublicKeySecurityHandler
- extends Object
- Author:
- Aiken Sam ([email protected])
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEED_LENGTH
static final int SEED_LENGTH
- See Also:
- Constant Field Values
recipients
private ArrayList recipients
seed
private byte[] seed
PdfPublicKeySecurityHandler
public PdfPublicKeySecurityHandler()
unescapedString
public static byte[] unescapedString(byte[] bytes)
throws BadPdfFormatException
- Throws:
BadPdfFormatException
addRecipient
public void addRecipient(PdfPublicKeyRecipient recipient)
getSeed
protected byte[] getSeed()
getRecipientsSize
public int getRecipientsSize()
getEncodedRecipient
public byte[] getEncodedRecipient(int index)
throws IOException,
GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
getEncodedRecipients
public PdfArray getEncodedRecipients()
throws IOException,
GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
createDERForRecipient
private DERObject createDERForRecipient(byte[] in,
X509Certificate cert)
throws IOException,
GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
computeRecipientInfo
private KeyTransRecipientInfo computeRecipientInfo(X509Certificate x509certificate,
byte[] abyte0)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException