Class: HexaPDF::Type::AcroForm::SignatureField::CertificateSeedValueDictionary

Inherits:
Dictionary
  • Object
show all
Extended by:
Utils::BitField
Defined in:
lib/hexapdf/type/acro_form/signature_field.rb

Overview

A certificate seed value dictionary contains information about the characteristics of the certificate that shall be used when signing.

Flags

The flags describe the entries that a signer is required to use.

The available flags are: subject, issuer, oid, subject_dn, reserved, key_usage and url.

See: PDF2.0 s12.7.5.5

Constant Summary

Constants included from DictionaryFields

DictionaryFields::Boolean, DictionaryFields::PDFByteString, DictionaryFields::PDFDate

Instance Attribute Summary

Attributes inherited from Object

#data, #document, #must_be_indirect

Instance Method Summary collapse

Methods included from Utils::BitField

bit_field

Methods inherited from Dictionary

#[], #[]=, define_field, define_type, #delete, #each, each_field, #empty?, field, #key?, #to_hash, type, #type

Methods inherited from Object

#<=>, #==, #cache, #cached?, #clear_cache, deep_copy, #deep_copy, #document?, #eql?, field, #gen, #gen=, #hash, #indirect?, #initialize, #inspect, make_direct, #must_be_indirect?, #null?, #oid, #oid=, #type, #validate, #value, #value=

Constructor Details

This class inherits a constructor from HexaPDF::Object

Instance Method Details

#flagsObject

:method: flag :call-seq:

flag(*flags, clear_existing: false)

Sets the given flags, given as flag names or bit indices. If clear_existing is true, all prior flags will be cleared.



198
199
200
201
# File 'lib/hexapdf/type/acro_form/signature_field.rb', line 198

bit_field(:flags, {subject: 0, issuer: 1, oid: 2, subject_dn: 3, reserved: 4,
         key_usage: 5, url: 6},
lister: "flags", getter: "flagged?", setter: "flag", unsetter: "unflag",
value_getter: "self[:Ff]", value_setter: "self[:Ff]")