### ----------------------------------------------------
### -- PDF::ISO_32000
### -- Licenses: Artistic-2.0
### -- Authors: David Warring
### -- File: lib/ISO_32000/Table_23-Additional_encryption_dictionary_entries_for_public-key_security_handlers.rakumod
### ----------------------------------------------------
use v6;
role ISO_32000::Table_23-Additional_encryption_dictionary_entries_for_public-key_security_handlers {
    method Recipients {...};
    method P {...};
}

=begin pod

=head1 Description

Table 23 – Additional encryption dictionary entries for public-key security handlers

=head1 Methods (Entries)

=head2 Recipients [array]
- (Required when SubFilter is adbe.pkcs7.s3 or adbe.pkcs7.s4; PDF 1.3) An array of byte-strings, where each string is a PKCS7 object listing recipients who have been granted equal access rights to the document. The data contained in the PKCS7 object includes both a cryptographic key that is used to decrypt the encrypted data and the access permissions (see Table 24) that apply to the recipient list. There is only one PKCS7 object per unique set of access permissions; if a recipient appears in more than one list, the permissions used is those in the first matching list.
When SubFilter is adbe.pkcs7.s5, recipient lists is specified in the crypt filter dictionary; see Table 27.

=head2 P [integer]
- (Required) A set of flags specifying which operations is permitted when the document is opened with user access. If bit 2 is set to 1, all other bits are ignored and all operations are permitted. If bit 2 is set to 0, permission for operations are based on the values of the remaining flags defined in Table 24.

=end pod


