com.lowagie.text.pdf
Class PdfPublicKeySecurityHandler

java.lang.Object
  extended by com.lowagie.text.pdf.PdfPublicKeySecurityHandler

public class PdfPublicKeySecurityHandler
extends Object

Author:
Aiken Sam (aikensam@ieee.org)

Field Summary
private  ArrayList recipients
           
private  byte[] seed
           
(package private) static int SEED_LENGTH
           
 
Constructor Summary
PdfPublicKeySecurityHandler()
           
 
Method Summary
 void addRecipient(PdfPublicKeyRecipient recipient)
           
private  KeyTransRecipientInfo computeRecipientInfo(X509Certificate x509certificate, byte[] abyte0)
           
private  DERObject createDERForRecipient(byte[] in, X509Certificate cert)
           
 byte[] getEncodedRecipient(int index)
           
 PdfArray getEncodedRecipients()
           
 int getRecipientsSize()
           
protected  byte[] getSeed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEED_LENGTH

static final int SEED_LENGTH
See Also:
Constant Field Values

recipients

private ArrayList recipients

seed

private byte[] seed
Constructor Detail

PdfPublicKeySecurityHandler

public PdfPublicKeySecurityHandler()
Method Detail

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

Hosted by Hostbasket