Module: Origami::Encryption::EncryptedObject

Included in:
EncryptedStream, EncryptedString
Defined in:
lib/origami/encryption.rb

Overview

Module for encrypted PDF objects.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#algorithm=(value) ⇒ Object (writeonly)

Sets the attribute algorithm

Parameters:

  • value

    the value to set the attribute algorithm to.



400
401
402
# File 'lib/origami/encryption.rb', line 400

def algorithm=(value)
  @algorithm = value
end

#decryptedObject

Returns the value of attribute decrypted.



402
403
404
# File 'lib/origami/encryption.rb', line 402

def decrypted
  @decrypted
end

#encryption_handler=(value) ⇒ Object (writeonly)

Sets the attribute encryption_handler

Parameters:

  • value

    the value to set the attribute encryption_handler to.



401
402
403
# File 'lib/origami/encryption.rb', line 401

def encryption_handler=(value)
  @encryption_handler = value
end

#encryption_key=(value) ⇒ Object (writeonly)

:nodoc



399
400
401
# File 'lib/origami/encryption.rb', line 399

def encryption_key=(value)
  @encryption_key = value
end

Class Method Details

.extended(obj) ⇒ Object



404
405
406
# File 'lib/origami/encryption.rb', line 404

def self.extended(obj)
  obj.decrypted = false
end

Instance Method Details

#post_buildObject



408
409
410
411
412
# File 'lib/origami/encryption.rb', line 408

def post_build
  encrypt!

  super
end