to see how to protect document with this security handler.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FILTER
The filter name. |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PublicKeySecurityHandler(PublicKeyProtectionPolicy
The protection policy. publicKeyProtectionPolicy)Constructor used for encryption. |
| Modifier and Type | Method and Description |
|---|---|
| private void | appendCertInfo(StringBuilder extraInfo, KeyTransRecipientId ktRid, X509Certificate certificate, X509CertificateHolder materialCert)
|
| private KeyTransRecipientInfo | |
| private byte[][] | |
| private ASN1Primitive | |
| public void | prepareDocumentForEncryption(PDDocument
The document that will be encrypted. doc)Implements abstract org. Prepare the document for encryption. |
| private void | |
| public void | prepareForDecryption(PDEncryption
encryption dictionary, can be retrieved via
encryption, COSArray PDDocument#getEncryption()document id which is returned via
documentIDArray, DecryptionMaterial org. (not used by
this handler)Information used to decrypt the document. decryptionMaterial)Implements abstract org. Prepares everything to decrypt the document. |
| FILTER | back to summary |
|---|---|
| public static final String FILTER The filter name. | |
| SUBFILTER4 | back to summary |
|---|---|
| private static final String SUBFILTER4 | |
| SUBFILTER5 | back to summary |
|---|---|
| private static final String SUBFILTER5 | |
| PublicKeySecurityHandler | back to summary |
|---|---|
| public PublicKeySecurityHandler() Constructor. | |
| PublicKeySecurityHandler | back to summary |
|---|---|
| public PublicKeySecurityHandler(PublicKeyProtectionPolicy publicKeyProtectionPolicy) Constructor used for encryption.
| |
| appendCertInfo | back to summary |
|---|---|
| private void appendCertInfo(StringBuilder extraInfo, KeyTransRecipientId ktRid, X509Certificate certificate, X509CertificateHolder materialCert) | |
| computeRecipientInfo | back to summary |
|---|---|
| private KeyTransRecipientInfo computeRecipientInfo(X509Certificate x509certificate, byte[] abyte0) throws IOException, CertificateEncodingException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException | |
| computeRecipientsField | back to summary |
|---|---|
| private byte[][] computeRecipientsField(byte[] seed) throws GeneralSecurityException, IOException | |
| createDERForRecipient | back to summary |
|---|---|
| private ASN1Primitive createDERForRecipient(byte[] in, X509Certificate cert) throws IOException, GeneralSecurityException | |
| prepareDocumentForEncryption | back to summary |
|---|---|
| public void prepareDocumentForEncryption(PDDocument doc) throws IOException Implements abstract org. Prepare the document for encryption.
| |
| prepareEncryptionDictAES | back to summary |
|---|---|
| private void prepareEncryptionDictAES(PDEncryption encryptionDictionary, COSName aesVName, byte[][] recipients) | |
| prepareForDecryption | back to summary |
|---|---|
| public void prepareForDecryption(PDEncryption encryption, COSArray documentIDArray, DecryptionMaterial decryptionMaterial) throws IOException Implements abstract org. Prepares everything to decrypt the document.
| |