Class PubSecHandlerUsingAesGcm


  • public class PubSecHandlerUsingAesGcm
    extends PubSecHandlerUsingAes256
    Public-key security handler with Advanced Encryption Standard-Galois/Counter Mode (AES-GCM) encryption algorithm.
    • Field Detail

      • noncePart

        protected byte[] noncePart
      • inObjectNonceCounter

        protected int inObjectNonceCounter
    • Constructor Detail

      • PubSecHandlerUsingAesGcm

        public PubSecHandlerUsingAesGcm​(PdfDictionary encryptionDictionary,
                                        java.security.cert.Certificate[] certs,
                                        int[] permissions,
                                        boolean encryptMetadata,
                                        boolean embeddedFilesOnly)
        Creates new PubSecHandlerUsingAesGcm instance for encryption.
        Parameters:
        encryptionDictionary - document's encryption dictionary
        certs - recipients' X.509 public key certificates
        permissions - access permissions provided to each recipient
        encryptMetadata - indicates whether the document-level metadata stream shall be encrypted
        embeddedFilesOnly - indicates whether embedded files shall be encrypted in an otherwise unencrypted document
      • PubSecHandlerUsingAesGcm

        public PubSecHandlerUsingAesGcm​(PdfDictionary encryptionDictionary,
                                        java.security.Key certificateKey,
                                        java.security.cert.Certificate certificate,
                                        java.lang.String certificateKeyProvider,
                                        IExternalDecryptionProcess externalDecryptionProcess,
                                        boolean encryptMetadata)
        Creates new PubSecHandlerUsingAesGcm instance for decryption.
        Parameters:
        encryptionDictionary - document's encryption dictionary
        certificateKey - the recipient private Key to the certificate
        certificate - the recipient Certificate, serves as recipient identifier
        certificateKeyProvider - the certificate key provider id for Security.getProvider(String)
        externalDecryptionProcess - the external decryption process to be used
        encryptMetadata - indicates whether the document-level metadata stream shall be encrypted