Package com.aowagie.text.pdf
Class PdfPublicKeySecurityHandler
- java.lang.Object
-
- com.aowagie.text.pdf.PdfPublicKeySecurityHandler
-
class PdfPublicKeySecurityHandler extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayListrecipientsprivate byte[]seedprivate static intSEED_LENGTH
-
Constructor Summary
Constructors Constructor Description PdfPublicKeySecurityHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddRecipient(PdfPublicKeyRecipient recipient)private org.bouncycastle.asn1.cms.KeyTransRecipientInfocomputeRecipientInfo(java.security.cert.X509Certificate x509certificate, byte[] abyte0)private org.bouncycastle.asn1.ASN1PrimitivecreateDERForRecipient(byte[] in, java.security.cert.X509Certificate cert)byte[]getEncodedRecipient(int index)PdfArraygetEncodedRecipients()intgetRecipientsSize()protected byte[]getSeed()
-
-
-
Field Detail
-
SEED_LENGTH
private static final int SEED_LENGTH
- See Also:
- Constant Field Values
-
recipients
private java.util.ArrayList recipients
-
seed
private byte[] seed
-
-
Method Detail
-
addRecipient
void addRecipient(PdfPublicKeyRecipient recipient)
-
getSeed
protected byte[] getSeed()
-
getRecipientsSize
public int getRecipientsSize()
-
getEncodedRecipient
public byte[] getEncodedRecipient(int index) throws java.io.IOException, java.security.GeneralSecurityException- Throws:
java.io.IOExceptionjava.security.GeneralSecurityException
-
getEncodedRecipients
public PdfArray getEncodedRecipients() throws java.io.IOException, java.security.GeneralSecurityException
- Throws:
java.io.IOExceptionjava.security.GeneralSecurityException
-
createDERForRecipient
private org.bouncycastle.asn1.ASN1Primitive createDERForRecipient(byte[] in, java.security.cert.X509Certificate cert) throws java.io.IOException, java.security.GeneralSecurityException- Throws:
java.io.IOExceptionjava.security.GeneralSecurityException
-
computeRecipientInfo
private org.bouncycastle.asn1.cms.KeyTransRecipientInfo computeRecipientInfo(java.security.cert.X509Certificate x509certificate, byte[] abyte0) throws java.security.GeneralSecurityException, java.io.IOException- Throws:
java.security.GeneralSecurityExceptionjava.io.IOException
-
-