public class PdfPublicKeySecurityHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
private ArrayList |
recipients |
private byte[] |
seed |
(package private) static int |
SEED_LENGTH |
| Constructor and Description |
|---|
PdfPublicKeySecurityHandler() |
| Modifier and Type | Method and Description |
|---|---|
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() |
static byte[] |
unescapedString(byte[] bytes) |
static final int SEED_LENGTH
private ArrayList recipients
private byte[] seed
public static byte[] unescapedString(byte[] bytes)
throws BadPdfFormatException
BadPdfFormatExceptionpublic void addRecipient(PdfPublicKeyRecipient recipient)
protected byte[] getSeed()
public int getRecipientsSize()
public byte[] getEncodedRecipient(int index)
throws IOException,
GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic PdfArray getEncodedRecipients() throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprivate DERObject createDERForRecipient(byte[] in, X509Certificate cert) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprivate KeyTransRecipientInfo computeRecipientInfo(X509Certificate x509certificate, byte[] abyte0) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOException